tychinav/platon

Intagration for Platon

v1.0.3 2020-01-29 12:11 UTC

This package is auto-updated.

Last update: 2025-07-29 01:52:38 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',
]);