gpt4 book ai didi

支付宝!使用 PHP SDK 通过 token 获取支付 ID

转载 作者:太空宇宙 更新时间:2023-11-03 16:08:12 26 4
gpt4 key购买 nike

我有像 paypalresponse?success=false&token=EC-8VH36191PU035730M 这样的 Paypal 响应。如果付款失败,我需要通过此 token 获取付款 ID。使用 Paypal PHP SDK。

最佳答案

如果付款不成功,您将不会收到交易 ID。您应该会收到一个关联 ID 以及错误消息。

来自 PayPal 开发者网站:

A non-successful response can contain more than one error number and message. NVP Error fields start with L_ERRORCODEn, where n, starting from 0, identifies a unique error in the response. There are two messages for each error number, L_SHORTMESSAGEn and L_LONGMESSAGEn, where n corresponds with n in L_ERRORCODEn. The equivalent SOAP error fields are: ErrorCode, ShortMessage and LongMessage.

Handling Error Messages with Express Checkout
How to recover from Funding Failure

关于支付宝!使用 PHP SDK 通过 token 获取支付 ID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31650607/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com