PHP code example of chan / hx_ips

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

    

chan / hx_ips example snippets


配置基本内容
 
$config = [
    'Version'=>'v1.0.0',
    'MerCode'=>'',//商户号--申请
    'Account'=>'',//交易账户号--申请
    'MerCert'=>'',//商户证书
    'PostUrl'=>'https://thumbpay.e-years.com/psfp-webscan/onlinePay.do',//请求地址
    'S2Snotify_url'=>'',//回调通知地址
    'return_url'=>'',// 同步回调地址
];