PHP code example of tychinav / platon
1. Go to this page and download the library: Download tychinav/platon library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tychinav / platon example snippets
laton\Platon;
$pay = new Platon('TEST000001', 'P@$$vv0r|)');
echo $pay->getHtmlForm([
'payment' => 'CC',
'amount' => '1.99',
'currency' => 'UAH',
'description' => 'Test description',
'url' => 'http://exmple.com',
]);