-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支付宝 wap 支付回调时 The private_key parameter is required #6
Comments
@lokielse 麻烦指教 |
如果回调通知参数 |
@lokielse Fatal error: Call to undefined method Omnipay\Alipay\WapExpressGateway::setPrivateKey() |
|
@lokielse 谢谢回复
$gateway = Omnipay::create('Alipay_WapExpress');//这个没问题吧?
$gateway->setPartner($partner);//变量从配置文件获取
$gateway->setKey($key);
$gateway->setSellerEmail($email);
$gateway->setPrivateKey('xxxx');
$options['request_params'] = Input::all();
$options['ca_cert_path'] = storage_path() . DIRECTORY_SEPARATOR . 'cert' . DIRECTORY_SEPARATOR . 'cacert.pem';
$options['sign_type'] = 'MD5';
$request = $gateway->completePurchase($options)->send();// 这行报错The private_key parameter is required
$debug_data = $request->getData();
if ($request->isSuccessful()) {
} |
你可能用的是老版本,不排除是本库代码有问题。 建议你使用最新版的 使用说明见: https://github.com/lokielse/omnipay-alipay/wiki/Aop-WAP-Gateway https://github.com/lokielse/omnipay-alipay/wiki/Legacy-WAP-Gateway |
谢谢,因为是 2 年前使用的 |
用这个吧,是老版本的最后一个版本,bug相对较少。
|
composer.json 使用的包
"lokielse/omnipay-alipay": "1.0.1",
支付页面
wap 端输入密码支付,成功然后跳转支付同步回调页面
The text was updated successfully, but these errors were encountered: