zfaka自动发卡源码修改发卡网回调地址,支付宝订单商品名称规避敏感产品信息
假设使用的是支付宝当面付
找到文件 /application/library/Pay/zfbf2f/zfbf2f.php
修改如下代码
/*
* 支付宝当面付
*/
public function reqAlipay()
{
$param = inputself();
$config = [
'use_sandbox' => false,
'app_id' => config('app_id'), //应用appid
'sign_type' => 'RSA2',
'ali_public_key' => config('ali_public_key'),
'rsa_private_key' => config('rsa_private_key'),
'notify_url' =>"https://www.mbiden.com/pay/callback/callbackalipay.html", //异步通知地址
'return_url' =>"https://www.mbiden.com/pay/callback/callbackalipay.html",
'return_raw' => true
];
$data = [
'order_no' => $param['p2_Order'], //商户订单号,需要保证唯一
'amount' => str_replace(',', '', $param['p3_Amt']), //订单金额,单位 元
'subject' => '姿韵宝妈生活馆', //订单标题
'body' => "消费".$param['p3_Amt']."元", //订单描述
];
try {
$ewm = Charge::run(Configv::ALI_CHANNEL_QR, $config, $data);
} catch (PayException $e) {
echo $e->errorMessage();
exit;
}
$this->assign('erweima', $ewm);
$this->assign('param', $param);
return $this->fetch('/index/index');
}
把这里的 'subject' => '姿韵宝妈生活馆',名称改成你想要的即可
评论
评论 (0)