PHP code example of yijin / joinpay
1. Go to this page and download the library: Download yijin/joinpay 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/ */
yijin / joinpay example snippets
// 支付接口
$res = (new \joinpay\request\UniPay())->setP1MerchantNo('xxxx')->setP2OrderNo('xxxx')->setP3Amount(1)->exec();
// 订单查询接口
$res = (new \joinpay\request\QueryOrder())->setP1MerchantNo('xxxx')->setP2OrderNo('xxxx')->setP3Amount(1)->exec();