如何解决“内部错误”问题Paypal 网站 Payments Pro 出现错误?
我有一个计费例程,在 Paypal 的 Website Payments Pro 中使用定期计费配置文件。此例程使用 paypal profileid 和 GetRecurringPaymentsProfileDetails 方法成功创建配置文件并在创建后获取配置文件信息。
但是,当我尝试使用 UpdateRecurringPaymentsProfile 方法仅更新配置文件上的 AMOUNT/AMT 时,我收到此错误:
[ERRORCODE] => 10001
[SHORTMESSAGE] => Internal Error
[LONGMESSAGE] => Internal Error
[SEVERITYCODE] => Error
以下是我传递的字段:
[NOTE] => A note here
[PROFILEID] => redacted
[AMT] => 7
[VERSION] => 62.0
[USER] => redacted
[PWD] => redacted
[SIGNATURE] => redacted
[METHOD] => UpdateRecurringPaymentsProfile
故障排除步骤:
- 我有一个中央调用例程,将请求传递给 Paypal,适用于 create 和 get 方法。
- 所有请求都使用相同的 API 信息。
- 我已经复制并进行了查找,以确认沙盒中的配置文件 ID 正确
- 无误 我可以在获取方法上使用相同的配置文件 ID,不会出现错误
- 我确认您可以使用更新方法仅更新定期付款配置文件上的金额。
我遇到了一个描述性不强的错误。 Paypal 文档不包含针对此类一般错误的任何故障排除提示。
我在网上看到过 Paypal 中的终端用于解决此问题,但我不确定它们是否只是指沙箱中的创建个人资料屏幕,或者是否还有其他内容。
您有任何解决此错误的提示吗?
I have a billing routine that uses recurring billing profiles in Paypal's Website Payments Pro. This routine successfully creates profiles and gets the profile information after creation using the paypal profileid and the GetRecurringPaymentsProfileDetails method.
However, when I try to use UpdateRecurringPaymentsProfile method to update just the AMOUNT/AMT on the profile I get this error:
[ERRORCODE] => 10001
[SHORTMESSAGE] => Internal Error
[LONGMESSAGE] => Internal Error
[SEVERITYCODE] => Error
Here are the fields I'm passing:
[NOTE] => A note here
[PROFILEID] => redacted
[AMT] => 7
[VERSION] => 62.0
[USER] => redacted
[PWD] => redacted
[SIGNATURE] => redacted
[METHOD] => UpdateRecurringPaymentsProfile
Troubleshooting steps:
- I have a single central calling routine that passes the requests to Paypal, that works for the create and get methods.
- The same API information is used for all requests.
- I've copied and did a find to confirm the PROFILE ID was right in the sandbox
- I can use the same profile ID on the get methods without error
- I confirmed that you can update just the amount on a recurring payments profile using the update method.
I'm stuck with an error that isn't very descriptive. The Paypal documentation does not include any troubleshooting tips for this kind of generic error.
I have seen online mention of a terminal in Paypal for troubleshooting this, but I'm not sure if they just mean the create profile screen in the sandbox, or if there is something else.
Do you have any tips for troubleshooting this error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
事实证明,问题在于,如果您尝试将配置文件更新为当前设置的相同金额,则对 UpdateRecurringPaymentsProfile 的调用将会失败。
As it turns out, the issue is that a call to UpdateRecurringPaymentsProfile will fail if you try to update the profile to the same amount to which it is currently set.
我也遇到了这个问题 - 感谢您的帮助。值得补充的是,AMT 字段仅在包含时才需要不同,它在更新调用中是可选的。
I ran into this too - thanks for the help. It's worth adding that the AMT field only needs to be different if it's included, it's optional on the update call.
如果您使用错误的测试信用卡号,则在对沙箱服务器进行攻击期间也可能会导致此错误。确保您使用的是 Paypal Sandbox 网站提供的产品。
This error can also be caused during hits against the sandbox server if you use the wrong test credit card number. Make sure you're using the one provided to you by the Paypal Sandbox Website.