lokielse / omnipay-unionpay

UnionPay driver for the Omnipay PHP payment processing library
MIT License
112 stars 43 forks source link

银联网关支付是否支付成功的判断有点问题 #37

Closed duanjin123 closed 4 years ago

duanjin123 commented 4 years ago

如下图所示,开发包里是通过respCode等于00判断是否支付 image 但是在实际支付过程中,如果用户输入了错误的,用户在未正确支付的情况下,收到的通知结果如下: { "accNo": "6216***********0018", "merId": "777290058176106", "certId": "69026276696", "txnAmt": "1", "bizType": "000201", "orderId": "101720042913364919949986965519", "queryId": "302004291336490032748", "respMsg": "成功[0000000]", "traceNo": "003274", "txnTime": "20200429133649", "txnType": "01", "version": "5.0.0", "encoding": "utf-8", "respCode": "00", "settleAmt": "1", "signature": "gwKTt2Udcl32uaYZVbxfTQJXQXvxv1wFgucYIFbcNH15Zfa45hTdDaXnPjGZ8iR28tYkYL12XMZxX4/0SaVhsKHXTS+/RUAqa5MeqHm78ZQhRbwY/QITsjEKHpEHxo1/Yit114L3IVV5rECwIfeI2ZknMx+t3bJku6589MNRMxn2i8FGBCVCVKR9MFNBwNrvBWvw5BI/vXxb7Ksf6fqPujGtlGduSmZi22Lk00hMlAzL9nUympiUVIstt6pyfDOzi9v1enK4YzH2zzGjxp/6xSJYPMHKnOQ1zqKMRfMSJv/dxS12xPO49KO6QvaQCW4fbf3errZoKDaM8FTYYIrlgQ==", "traceTime": "0429133649", "accessType": "0", "settleDate": "0429", "signMethod": "01", "txnSubType": "01", "origRespMsg": "持卡人身份信息、手机号或CVN2输入不正确,验证失败[1000005]", "currencyCode": "156", "origRespCode": "66", "issuerIdentifyMode": "0", "settleCurrencyCode": "156" } 其中,respCode等于00,但是origRespMsg显示支付出错,其实这是没有支付成功的,是否应该判断一下origRespCode?