lokielse
lokielse
如果回调通知参数`sitn_type`为`RSA`时,需要设置商户私钥进行验证:`$gateway->setPrivateKey('xxx')`
- `setPrivateKey`是一个实例方法,不是类方法,你需要在实例上调用 - 在回调的时候,`sign_type`需要从支付宝回调的数据中获取
你可能用的是老版本,不排除是本库代码有问题。 建议你使用最新版的`Alipay_AopWap`网关或者`Alipay_LegacyWap`网关 使用说明见: https://github.com/lokielse/omnipay-alipay/wiki/Aop-WAP-Gateway https://github.com/lokielse/omnipay-alipay/wiki/Legacy-WAP-Gateway
用这个吧,是老版本的最后一个版本,bug相对较少。 `"lokielse/omnipay-alipay": "dev-legacy"`
@Rgrable I'm sorry to tell you that there is no RSA implemention of `omnipay-global-alipay`. The complete purchase process need a `alipay_public_key` parameter You should change the code at [CompletePurchaseRequest.php#L16](https://github.com/lokielse/omnipay-global-alipay/blob/master/src/Message/CompletePurchaseRequest.php#L165) ```php...