如何使用PayPal Express Checkout调试失败的交易?

时间:2022-10-14 14:56:42

We're using PayPal Express Checkout (implemented in Ruby, Active Merchant gem)

我们正在使用PayPal Express Checkout(在Ruby中实现,Active Merchant gem)

A few transactions failed recently, while majority work fine.

最近有一些交易失败,而大多数交易都很好。

I have looked at our log file and identified the user who had failed transactions.

我查看了我们的日志文件,并确定了交易失败的用户。

I have the transaction token, PayerID, user's email address, correlation ID.

我有交易令牌,PayerID,用户的电子邮件地址,相关ID。

I have contacted PayPal technical support about this and provided them with the above details.

我已经联系了PayPal技术支持,并向他们提供了上述详细信息。

But I wonder if it's possible to get more information about these failed transactions myself. Does the Ruby gem Active Merchant provide an easy way to get it from PayPal?

但我想知道是否有可能自己获得有关这些失败交易的更多信息。 Ruby gem Active Merchant是否提供了一种从PayPal获取它的简单方法?

Thanks

谢谢

2 个解决方案

#1


0  

The only information you really get back, is just basically what comes back in the API response. Sometimes this is enough to determine what the cause of the issue is, other times it requires a little bit more looking into and PayPal MTS would need to look into it.

您真正获得的唯一信息基本上就是API响应中的内容。有时候这足以确定问题的原因是什么,有时候需要更多的研究和PayPal MTS需要调查它。

#2


0  

There are a few things you can do here to harden the Express Checkout implementation:

您可以在此处执行一些操作来强化Express Checkout实施:

Monitoring Error Code Responses

监控错误代码响应

Express Checkout will send back a series of error codes on failed transactions. What you can do is monitor these specific error responses and that will give you an idea of what the problem with the transaction is, and in doing so you'll be able to respond accordingly (such as trying to transaction again). Here are the error code responses for Express Checkout: http://www.paypalobjects.com/en_US/ebook/PP_APIReference/Appx-ErrorCodes_and_Messages.html#2270815

Express Checkout将在失败的交易中发回一系列错误代码。您可以做的是监控这些特定的错误响应,这将使您了解交易的问题是什么,并且这样做您将能够做出相应的响应(例如再次尝试交易)。以下是Express Checkout的错误代码响应:http://www.paypalobjects.com/en_US/ebook/PP_APIReference/Appx-ErrorCodes_and_Messages.html#2270815

Looking up Transaction Data

查找交易数据

Besides the error codes, you can also use a GetTransactionDetails API operation to grab information about some transaction that might have had a problem. This will return some useful information that would help you to handle these cases as well. This information is available here: https://www.x.com/developers/paypal/documentation-tools/api/gettransactiondetails-api-operation-nvp

除了错误代码之外,您还可以使用GetTransactionDetails API操作来获取有关可能存在问题的某些事务的信息。这将返回一些有用的信息,这些信息也可以帮助您处理这些情况。此信息可在此处获取:https://www.x.com/developers/paypal/documentation-tools/api/gettransactiondetails-api-operation-nvp

Hope that helps,

希望有所帮助,

Jon

乔恩

#1


0  

The only information you really get back, is just basically what comes back in the API response. Sometimes this is enough to determine what the cause of the issue is, other times it requires a little bit more looking into and PayPal MTS would need to look into it.

您真正获得的唯一信息基本上就是API响应中的内容。有时候这足以确定问题的原因是什么,有时候需要更多的研究和PayPal MTS需要调查它。

#2


0  

There are a few things you can do here to harden the Express Checkout implementation:

您可以在此处执行一些操作来强化Express Checkout实施:

Monitoring Error Code Responses

监控错误代码响应

Express Checkout will send back a series of error codes on failed transactions. What you can do is monitor these specific error responses and that will give you an idea of what the problem with the transaction is, and in doing so you'll be able to respond accordingly (such as trying to transaction again). Here are the error code responses for Express Checkout: http://www.paypalobjects.com/en_US/ebook/PP_APIReference/Appx-ErrorCodes_and_Messages.html#2270815

Express Checkout将在失败的交易中发回一系列错误代码。您可以做的是监控这些特定的错误响应,这将使您了解交易的问题是什么,并且这样做您将能够做出相应的响应(例如再次尝试交易)。以下是Express Checkout的错误代码响应:http://www.paypalobjects.com/en_US/ebook/PP_APIReference/Appx-ErrorCodes_and_Messages.html#2270815

Looking up Transaction Data

查找交易数据

Besides the error codes, you can also use a GetTransactionDetails API operation to grab information about some transaction that might have had a problem. This will return some useful information that would help you to handle these cases as well. This information is available here: https://www.x.com/developers/paypal/documentation-tools/api/gettransactiondetails-api-operation-nvp

除了错误代码之外,您还可以使用GetTransactionDetails API操作来获取有关可能存在问题的某些事务的信息。这将返回一些有用的信息,这些信息也可以帮助您处理这些情况。此信息可在此处获取:https://www.x.com/developers/paypal/documentation-tools/api/gettransactiondetails-api-operation-nvp

Hope that helps,

希望有所帮助,

Jon

乔恩