PHP code example of yexk / thirdpay-sdk
1. Go to this page and download the library: Download yexk/thirdpay-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/ */
yexk / thirdpay-sdk example snippets
��数选项
$options = [
'appid' => 'xxxxx',
'secret' => 'xxxxxxx',
'gateway' => 'https://nr.xiaoxiaonb.club',
];
// 初始化
$Sdk = new YeThird\ThirdSdk($options);
// 调用的参数
$result = $Sdk->c2b([
'amount' => 100,
'order_no' => md5(time()),
'uid' => uniqid(),
'bank_code' => '20009',
'notify_url' => 'http://xxxx.com/notify_url',
'return_url' => 'http://xxxx.com/return_url',
]);
// echo $result;
var_dump($result);