支付宝回调签名
This commit is contained in:
parent
aa43040aa2
commit
c9c7bdbc16
|
@ -98,7 +98,7 @@ func ALiH5PayInfo(c context.Context, payOrderRequest PayOrderRequest) (string, e
|
||||||
|
|
||||||
// ALiCallBack 支付宝支付回调
|
// ALiCallBack 支付宝支付回调
|
||||||
func ALiCallBack(notifyReq gopay.BodyMap, aliConfig AliPay) error {
|
func ALiCallBack(notifyReq gopay.BodyMap, aliConfig AliPay) error {
|
||||||
ok, err := alipay.VerifySignWithCert(aliConfig.AlipayPublicCert, notifyReq)
|
ok, err := alipay.VerifySignWithCert([]byte(aliConfig.AlipayPublicCert), notifyReq)
|
||||||
if !ok || err != nil {
|
if !ok || err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue