PHP code example of reelpay / sdk-php
1. Go to this page and download the library: Download reelpay/sdk-php 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/ */
reelpay / sdk-php example snippets
use Reelpay\Reelpay;
$transaction = Reelpay::Transaction(
'eqrbntqbi5uqvkpr',
'XhAlbICW10VJnWGruPL0NSnvb6946JDQ'
);
$res = $transaction->EntrustPay(
"out_trade_no",
"USD",
"1.2",
"Product name",
"https://reelpay.com/product.jpg"
);
var_dump($res);
// Todo: $payUrl = $res['data']['url'];
php composer.phar
json
"reelpay/sdk-php": "~1.0.0"