PHP code example of usepack / rahmetpay-php-sdk

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

    

usepack / rahmetpay-php-sdk example snippets


use RahmetPay\Client;

$basePath = 'https://gateway.chocodev.kz';
$rahmetPayClient = new Client($basePath);

$rahmetPayClient->auth($clientId, $clientSecret);

$rahmetPayClient->setBearerToken($bearerToken);

$rahmetPayClient->create($arrayCreate);

$rahmetPayClient->availability();

$rahmetPayClient->status($arrayCheck);

$rahmetPayClient->refund(100500, 5000, $idempotent);
bash
composer 

...
    ""php": ">=5.6",
        "usepack/rahmetpay-php-sdk": "^1.0"
...