gopay icon indicating copy to clipboard operation
gopay copied to clipboard

微信、支付宝、通联支付、拉卡拉、PayPal、Apple 的Go版本SDK。【极简、易用的聚合支付SDK】

Results 31 gopay issues
Sort by recently updated
recently updated
newest added

共享会话密钥是可选参数,没有的时候不能传,传空字符串会导致苹果返回21003

微信付款码支付,返回判断,偶发性报错,代码位置: ![image](https://github.com/go-pay/gopay/assets/49513445/b2e861b2-771d-4157-84db-c87dc9c244f5) 微信付款码支付返回结果: ![image](https://github.com/go-pay/gopay/assets/49513445/334e8f3f-2ee6-4398-9b63-de32b208e7a0)

为wechat.ClientV3 新增了一个构造方法,支持自定义xhttp.Client。

SDK 的 `autoSgin` 使用 `GetAndSelectNewestCert()` 获取最新的一个证书来验证签名。通常这没什么问题。但是如果同时有多个生效的证书(比如新证书处于灰度中)时,响应可能并不是固定的某一个证书,那么就会导致验签失败。 要避免这个问题,就需要根据微信 response 的响应证书编号获取对应证书而非固定试用最新证书,说明文档:https://pay.weixin.qq.com/docs/merchant/development/interface-rules/privatekey-and-certificate.html

alipayPublicCert, _ = certFS.ReadFile("cert1/alipayCertPublicKey_RSA2.crt") 下面是Notify 里面的验签 ok, err := alipay.VerifySign(string(alipayPublicCert), bm) if err != nil { xlog.Error("err:", err) return } 一直显示验签失败。 err: [verify signature error]: crypto/rsa: verification error

[微信H5支付文档](https://pay.weixin.qq.com/docs/merchant/apis/h5-payment/direct-jsons/h5-prepay.html)

支付宝用了现金抵价券导致验签不过

可以出一个 google 内购的接口吗

现在官方出了sdk或许可以直接对接:https://github.com/stripe/stripe-go