https://www.shanhe.site/submit.phphttps://www.shanhe.site/api.php10001demo117adb97c50c464344bd3909$params = [
'pid' => '10001',
'type' => 'alipay', // alipay / wxpay / qqpay
'out_trade_no' => 'ORDER' . time(),
'notify_url' => 'https://你的域名/notify.php',
'return_url' => 'https://你的域名/return.php',
'name' => '商品名称',
'money' => '1.00',
];
ksort($params);
$str = urldecode(http_build_query($params)) . 'demo117adb97c50c464344bd3909';
$params['sign'] = md5($str);
$params['sign_type'] = 'MD5';
header('Location: https://www.shanhe.site/submit.php?' . http_build_query($params));
| 字段 | 说明 |
|---|---|
| pid | 商户 ID |
| trade_no | 易支付订单号 |
| out_trade_no | 商户订单号 |
| type | 支付方式 |
| name | 商品名称 |
| money | 金额 |
| trade_status | 固定 TRADE_SUCCESS |
| param | 透传参数 |
| sign / sign_type | MD5 签名 |