沙箱上的贝宝直接付款错误 [英] paypal direct payment error on sandbox

查看:28
本文介绍了沙箱上的贝宝直接付款错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在 Sandbox 上测试直接支付.

I want to test Direct Payment on Sandbox.

根据支付宝

"要测试直接支付,您必须首先在为 Website Payments Pro 启用的 Sandbox 中创建一个测试企业帐户.然后,您可以使用该帐户通过 DoDirectPayment API 操作测试信用卡和借记卡支付.

"To test direct payment, you must first create a test business account in the Sandbox that is enabled for Website Payments Pro. You can then use the account to test credit and debit card payments using the DoDirectPayment API operation.

然后,您可以从 Sandbox 中的卡模拟借记卡或信用卡付款.此示例说明如何使用 cURL 模拟 DoDirectPayment API 操作以提供 NVP 请求值并调用 DoDirectPayment.

You can then simulate debit or credit card payments from cards that exist in the Sandbox. This example shows how to simulate a DoDirectPayment API operation using cURL to supply the NVP request values and to call DoDirectPayment.

要在 Sandbox 中测试 Direct Payment,您必须首先确保 Sandbox 测试帐户与信用卡关联并启用了 Website Payments Pro."

To test Direct Payment in the Sandbox, you must first ensure that the Sandbox test account is associated with a credit card and enabled for Website Payments Pro."

我创建了一个帐户,但我不知道如何启用它?
我不知道如何将信用卡关联到此帐户.
我了解到您有一个信用卡信息列表,您可以将其用于测试目的.

I created an account,but I do not know how to enable it?
I don't know how to associate a credit card to this account.
I read that you have a list of credit card information which you can use for testing purposes.

http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

我有一个调用 PayPal API 的函数,但我得到了这个响应.
我使用了上面链接中的信用卡号值.

I have a function which calls the PayPal API but I get this response.
I used credit card number values from the link above.

TIMESTAMP-----2012%2d01%2d05T15%3a03%3a59Z
CORRELATIONID-----3aa27e27f0b91
ACK-----Failure
VERSION-----51%2e0
BUILD-----2278658
L_ERRORCODE0-----10001
L_SHORTMESSAGE0-----Internal%20Error
L_LONGMESSAGE0-----The%20transaction%20could%20not%20be%20loaded
L_SEVERITYCODE0-----Error
AMT-----200%2e00
CURRENCYCODE-----USD
DoDirectPayment failed: 

我在 Sandbox 上成功使用了 Express Checkout,所以我对 PayPal 有一些了解NVP api.

I used Express Checkout on Sandbox with success,so I have some idea about the PayPal NVP api.

  • 有人能指出我正确的方向吗?
  • 基本上我不知道如何启用/激活我的 WPP 帐户?
  • 如何将信用卡关联到 WPP 帐户?
  • 还是我只使用信用卡号并从上面的链接中输入?
  • 如果是这样,那么 CVV2 以及其他信息(如 first_name、last_name billing_address 等)呢?

推荐答案

不要使用测试卡号;它们适用于 Payflow Pro.
使用任何符合 Luhn 算法的 Visa 卡号、任何到期日期和任何 CVV 代码(但最好是中性",例如 000).

Don't use the test card numbers; they're for Payflow Pro.
Use any Visa card number adhering the Luhn algorithm, with any expiry date and any CVV code (but preferably something 'neutral', such as 000).

例如签证16位

4539644852839411
4916985889534399
4532097446064367
4485179022551897
4539900745341886
4024007169148268
4024007136243697
4916509257154174
4916407734970124
4929371306022430
4485211356602036
4916165218627327
4716027688991769
4929468741933781
4485270162834753
4916077487725650
4916623903076903
4539664564248123
4725765424431181
4024007194632823

4539644852839411
4916985889534399
4532097446064367
4485179022551897
4539900745341886
4024007169148268
4024007136243697
4916509257154174
4916407734970124
4929371306022430
4485211356602036
4916165218627327
4716027688991769
4929468741933781
4485270162834753
4916077487725650
4916623903076903
4539664564248123
4725765424431181
4024007194632823

有效期:05/2015
CVV/CSV 代码:000

Expiry date: 05/2015
CVV/CSV code: 000

(通过 DarkCoding)

请记住,Sandbox 不会连接到任何外部卡处理器,因此如果您需要测试任何错误处理,则需要通过 https://developer.paypal.com/ 并传递特定金额/CVV 代码以触发特定错误代码.
(例如,发送 AMT=100.02 以触发 10002 API 错误代码.有关详细信息,请参阅沙盒用户指南.)

Keep in mind that Sandbox doesn't connect to any external card processors, so if you need to test any error handling, you'd need to enable "Negative Review" on your Sandbox test account via https://developer.paypal.com/ and pass specific amounts / CVV codes to trigger a specific error code.
(For example, sending AMT=100.02 to trigger the 10002 API error code. See the Sandbox User Guide for more details.)

这篇关于沙箱上的贝宝直接付款错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆