前面已经说完了 PHP接入支付宝 即时到帐接口
回调接口也已经完成。这篇主要讲 手机网站支付 、 移动支付 接口的调用。调用方式与即时到帐 基本一样。
关于代码部分的详细解释,请 参看 PHP接入支付宝 即时到帐接口
// 订单数组
$orderData = [
"order_no" => createPayid(),
"amount" => '0.01',// 单位为元 ,最小为0.01
"client_ip" => '127.0.0.1',
"subject" => ' 测试支付',
"body" => '支付接口测试',
"show_url" => 'http://mall.tiyushe.com/goods/23.html',
];
// 支付宝配置信息
$aliconfig = [
'partner' => '2088xxxxx',
'md5_key' => 'xxxxxxxxxxxx',
'rsa_private_key' => dirname(__FILE__) . '/rsa_private_key.pem',
"notify_url" => 'http://test.helei.com/pay-notify.html',
"return_url" => 'ht