Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test credit card numbers for use with PayPal sandbox

I'm having trouble testing credit card payments with PayPal's sandbox. When viewing a buyer's sandbox account's profile from within developer.paypal.com, I can see the following credit card details:

account

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."

error

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:

add

I have also tried using some "valid" numbers (i.e. they pass the Luhn algorithm), but none of those worked for me either.

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.

I've tried both US and UK accounts. No luck.

Any ideas?

like image 546
Kris Avatar asked Feb 03 '14 20:02

Kris


People also ask

Can PayPal simulate a credit card?

Using PayPal Sandbox for Testing Important: Payflow uses a set of specific credit card numbers for testing. However, PayPal allows you to generate card details which can be "real" numbers.


3 Answers

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" (i.e. 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. You can use any Expiry date (in the future) and any numeric CCV (123 works).

The "test credit card numbers" in the PayPal documentation are just another brick in their infuriating wall of convoluted stuff.

I got the url above from PayPal's tech support.

Tested using a simple Hosted button and IPN. Good luck.

like image 66
cucu8 Avatar answered Oct 18 '22 03:10

cucu8


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

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

It's worked every time for me so far...

like image 36
Robert' DROP TABLE students Avatar answered Oct 18 '22 02:10

Robert' DROP TABLE students


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. 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.

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. They should work.

like image 2
Drew Angell Avatar answered Oct 18 '22 03:10

Drew Angell