PHP code example of payboxmoney / payout

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

    

payboxmoney / payout example snippets


use Paybox\Payout\Facade as Paybox;
$payout = new Paybox();
$payout->merchant->id = 123456;
$payout->merchant->secretKey = 'asflerjgsdfv';
$payout->order->description = 'Description';
$payout->order->amount = 100;
$payout->order->id = 902003;
$payout->getConfig()->setPostLink('http://site.kz/');
$payout->getConfig()->setBackLink('http://site.kz/');
$payout->getConfig()->setOrderTimeLimit('2019-11-25 00:00:00');
if($payout->reg2nonreg()) {
    header('Location:' . $payout->redirectUrl);