tychinav / platon
Intagration for Platon
Installs: 22
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tychinav/platon
Requires
- php: >=5.6.0
This package is auto-updated.
Last update: 2025-12-29 02:59:54 UTC
README
Using composer:
composer require tychinav/platon
Usage
List of possible parameters:
['payment' => 'CC',
'order' => 'ORDER-123', // optional
'amount' => 1.05,
'currency' => 'UAH',
'description' => 'Describe of purchase',
'url' => '',
'error_url' => '', // optional
'recurring' => true, // optional
'ext1' => 'something', // optional
....
'ext10' => 'something', // optional
'lang' => 'en', // optional
'formid' => 'UIYY2H2', // optional
'first_name' => 'John', // optional
'last_name' => 'Doe', // optional
'address' => 'Some location', // optional
'zip' => '132456', // optional
'city' => 'Big city', // optional
'country' => 'UA', // optional
'phone' => '0669998877', // optional
'email' => 'example@mail.com', // optional
]
You can add own parameters in html form.
Example:
<?php
require_once 'vendor/autoload.php';
use Platon\Platon;
$pay = new Platon('TEST000001', 'P@$$vv0r|)');
echo $pay->getHtmlForm([
'payment' => 'CC',
'amount' => '1.99',
'currency' => 'UAH',
'description' => 'Test description',
'url' => 'http://exmple.com',
]);