...
API Endpoint (cсылка для отправки запросов):
https://secure.platononline.com/p2p-debit/
...
Описание параметров запроса:
...
Для просмотра примера раскройте список
Code Block | ||
---|---|---|
| ||
<?php
$pass='Xp7aNCuHSKqK3K488ZxBPV4n6S4tjyFy';
$params['action']='DEBIT_PREPARE';
$params['client_key']='FLN0X1QH0Q'; //Client's KEY
$params['order_id']='Platon_test'.rand(446, 1000);
$params['order_amount']='500.30';
$params['order_currency']='UAH';
$params['order_description']='test_by_Platon';
$params['card_number'] = '4999999999990011';
$params['card_exp_month'] = '01';
$params['card_exp_year'] = '2022';
$params['card_cvv2'] = '222';
$params['payer_first_name']='Jack';
$params['payer_last_name']='Dan';
$params['payer_phone']='+380111111111';
$params['payer_address']='NA';
$params['payer_country']='UA';
$params['payer_state']='NA';
$params['payer_city']='NA';
$params['payer_zip']='01001';
$params['payer_email']='test@test.com';
$params['payer_ip']='213.186.115.164';
$params['term_url_3ds']='https://secure.platononline.com';
$params['signature'] = sha1($pass . strtolower(implode('', $params)));
$url = 'https://secure.platononline.com/p2p-debit/';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://secure.platononline.com/p2p-debit/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $params,
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
?> |
Получение статуса транзакции в Callback и Response:
...