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:
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 (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?
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.