PHP code example of paytransferkz / paymentpage-sdk

1. Go to this page and download the library: Download paytransferkz/paymentpage-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/ */

    

paytransferkz / paymentpage-sdk example snippets


$gate = new paytransferkz\Gate('secret');
$payment = new paytransferkz\Payment('11', 'some payment id');
$payment->setPaymentAmount(1000)->setPaymentCurrency('RUB');
$url = $gate->getPurchasePaymentPageUrl($payment);

new paytransferkz\Gate('secret', 'https://mydomain.com/payment');

$gate->setPaymentBaseUrl('https://mydomain.com/payment');

$gate = new paytransferkz\Gate('secret');
$callback = $gate->handleCallback($data);