简体   繁体   English

测试用于 PayPal 沙盒的信用卡号

[英]Test credit card numbers for use with PayPal sandbox

I'm having trouble testing credit card payments with PayPal's sandbox.我在使用 PayPal 的沙盒测试信用卡付款时遇到问题。 When viewing a buyer's sandbox account's profile from within developer.paypal.com, I can see the following credit card details:从 developer.paypal.com 中查看买家的沙盒帐户资料时,我可以看到以下信用卡详细信息:

帐户

Although, when using these details on the payment screen, I get the message "We're sorry, we can't complete this payment. Please try another card."虽然,在付款屏幕上使用这些详细信息时,我收到消息“很抱歉,我们无法完成此付款。请尝试另一张卡。”

错误

I have read in other questions that you should be able to log into a sandbox account, go to add an additional credit card and it should generate some test numbers for you... However, when I do this, all of the fields are blank:我已经阅读了其他问题,您应该能够登录沙盒帐户,去添加一张额外的信用卡,它应该为您生成一些测试号码......但是,当我这样做时,所有字段都是空白的:

添加

I have also tried using some "valid" numbers (ie they pass the Luhn algorithm), but none of those worked for me either.我也尝试过使用一些“有效”的数字(即它们通过了 Luhn 算法),但这些数字也对我不起作用。

I've also tried the numbers listed on this page: https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm - They didn't work.我还尝试了此页面上列出的数字: https ://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm - 他们没有用。

I've tried both US and UK accounts.我已经尝试过美国和英国的帐户。 No luck.没运气。

Any ideas?有任何想法吗?

A bit late in the game but just in case it helps anyone.游戏有点晚了,但以防万一它对任何人都有帮助。

If you are testing using the Sandbox and on the payment page you want to test payments NOT using a PayPal account but using the "Pay with Debit or Credit Card option" (ie when a regular Joe/Jane, NOT PayPal users, want to buy your stuff) and want to save yourself some time: just go to a site like http://www.getcreditcardnumbers.com/ and get numbers from there.如果您正在使用沙盒进行测试,并且在付款页面上您想测试付款,而不是使用 PayPal 帐户,而是使用“使用借记卡或信用卡付款选项”(即当普通 Joe/Jane 而非 PayPal 用户想要购买你的东西)并想为自己节省一些时间:只需访问http://www.getcreditcardnumbers.com/之类的网站并从那里获取号码。 You can use any Expiry date (in the future) and any numeric CCV (123 works).您可以使用任何到期日期(将来)和任何数字 CCV(123 作品)。

The "test credit card numbers" in the PayPal documentation are just another brick in their infuriating wall of convoluted stuff. PayPal 文档中的“测试信用卡号码”只是他们令人费解的令人费解的墙中的另一块砖。

I got the url above from PayPal's tech support.我从 PayPal 的技术支持处获得了上面的 url。

Tested using a simple Hosted button and IPN.使用简单的托管按钮和 IPN 进行了测试。 Good luck.祝你好运。

In case anyone else comes across this in a search for an answer...万一其他人在寻找答案时遇到这个...

The test numbers listed in various places no longer work in the Sandbox.各个地方列出的测试编号在沙盒中不再起作用。 PayPal have the same checks in place now so that a card cannot be linked to more than one account.贝宝现在有相同的检查,因此一张卡不能链接到多个帐户。

Go here and get a number generated.转到此处并生成一个数字。 Use any expiry date and CVV使用任何到期日期和 CVV

https://ppmts.custhelp.com/app/answers/detail/a_id/750/ https://ppmts.custhelp.com/app/answers/detail/a_id/750/

It's worked every time for me so far...到目前为止,它每次都对我有用...

If a credit card is already added to a PayPal account then it won't let you use that card to process directly with Payments Advanced.如果信用卡已添加到 PayPal 帐户,则它不会让您使用该卡直接使用 Payments Advanced 进行处理。 The system expects buyers to login to PayPal and just choose that credit card as their funding source if they want to pay with it.该系统希望买家登录 PayPal,如果他们想用信用卡付款,只需选择该信用卡作为他们的资金来源。

As for testing on the sandbox, I've always used old, expired credit cards I have laying around and they seem to work fine for me.至于在沙盒上进行测试,我一直使用旧的、过期的信用卡,它们似乎对我来说很好用。

You could always try the ones starting on page 87 of the PayFlow documentation , too.您也可以尝试从PayFlow 文档的第 87 页开始的那些。 They should work.他们应该工作。

事实证明,在弄乱了测试业务帐户中的所有设置后,付款接收首选项/安全设置屏幕中的一个(或多个)与欺诈相关的设置导致测试付款失败(没有任何有用的错误)。

Now you can use the Credit Card Generator tool under Mock (in your Paypal Developer Interface).现在您可以使用 Mock 下的 Credit Card Generator 工具(在您的 Paypal 开发人员界面中)。 Just look at the following screenshot.看看下面的截图。 在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM