1. Go to this page and download the library: Download payprocessing/connectum-sdk 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/ */
$client = new Platron\Connectum\clients\PostClient($connectionSettings);
$card = new Platron\Connectum\data_objects\CardData();
$card->holder = 'test test';
$card->cvv = '123';
$card->expiration_month = '06';
$card->expiration_year = '2022';
$location = new Platron\Connectum\data_objects\LocationData();
$location->ip = '8.8.8.8';
$request = new Platron\Connectum\services\order_authorize\OrderAuthorizeRequest(10, 'RUB', '4111111111111111', $card, $location);
$response = new Platron\Connectum\services\order_authorize\OrderAuthorizeResponse($client->sendRequest($request));
$client = new Platron\Connectum\clients\PutClient($connectionSettings);
$request = new Platron\Connectum\services\order_charge\OrderChargeRequest(111, 10.00);
$response = new Platron\Connectum\services\order_charge\OrderChargeResponse($client->sendRequest($request));
$client = new Platron\Connectum\clients\GetClient($this->connectionSettings);
$request = new Platron\Connectum\services\order_list\OrderListRequest();
$card = new Platron\Connectum\data_objects\CardData();
$card->type = Platron\Connectum\handbooks\OrderStatus::PREPARED;
$request->setCard($card);
$response = new Platron\Connectum\services\order_list\OrderListResponse($client->sendRequest($request));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.