When I'm trying to make a payment in the sandbox environment I get this message all the time:
[ERRORCODE] => 5041 [ERRORMSG] => We're sorry, we can't complete this payment with the selected card at this time. Please try another card.
I tried several different card numbers with no luck. I have also tried the same card which is associated with the test buyer account with no luck.
However paying with paypal account works fine with that test account.
Also I cannot find any information about the error message and for why it is happening.
Any clue what could be the problem?
Can you try to use the credit card from the following url:-
http://www.getcreditcardnumbers.com/
http://www.fakenamegenerator.com/
Most the time the cards are working fine for testing.
Regards,
Giovani
Related
I'm implementing PayPal Express Checkout and I'm having trouble testing out PayPal Credit as the payment method. When I choose it as the method of payment, the response comes back as ERRORCODE0=10486 which means "This transaction couldn't be completed. Please redirect your customer to PayPal." It works fine when using other methods of payment.
Does anyone know if it's possible to make test transactions with PayPal Credit? I haven't been able to find anything in the docs or google about it so hoping someone on here knows!
Thanks!
You have two options for testing.
You can test it with the PayPal Demo site, which not only demos from start to finish paying with PayPal Credit. It also has working sample code available.
I found that you can simulate a PayPal Credit transaction in a sandbox account. I tested it on one of my sandbox accounts. You have to login in to one of your sandbox accounts that is not the merchant account that you are testing. I put in demo info when it asked me to apply for the product. My sandbox account was approved.
So I was able to get it to kind of work (at least in the sandbox). The issue was that it seems like it didn't like me passing in:
"USERSELECTEDFUNDINGSOURCE" => "BML" (old version) or "USERSELECTEDFUNDINGSOURCE" => "Finance" (new version)
When I used this option it sent me to a page that looked like this: http://imgur.com/J1exMJb
Which is what I wanted as we mainly wanted to focus on offering customers PayPal Credit.
When you remove the USERSELECTEDFUNDINGSOURCE option it takes you to a page like this: http://imgur.com/0XOaTOL
If you choose change payment source on this page and choose PayPal Credit, the transaction goes through successfully.
It's not exactly a solution to the problem but hopefully this helps anyone who was also having a similar issue.
While testing the direct payment with credit card I always get the following error: "You cannot use an e-mail address or card number that belongs to an existing PayPal account. If you have a PayPal account, please log in. If you don't, please change the e-mail address or card number and try again".
The credit cards number I use for testing come from http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm but I also tried those produced by http://www.getcreditcardnumbers.com/.
Finally I found the solution by cleaning browser cache and cookies before to connect to my site.
It's strange but it seems that having a PayPal cookie in the browser (created by during a previous PayPal transaction) causes its use also during a guest payment attempt.
I've spent about an hour trying to figure out what information to use to test credit card transactions in the PayPal Sandbox environment. No matter what I try I get the "Invalid Data This transaction cannot be processed." error. I'm using the Classic API.
I created a personal verified account with a Visa credit card in my developer account but the credit card information generated by the system yield the same error. Here's a screen of the account:
https://www.evernote.com/shard/s141/sh/e2a7147c-9cfb-4587-814d-13fdd97d1c29/a1e3d97e505071d6f927a71195f06f2f
After searching I found this post https://www.x.com/developers/paypal/forums/paypal-sandbox/how-test-sandbox-paypal-using-pay-credit-card I then logged into that Sandbox account, went to Profile > Credit/Debit Cards > Add a Card, chose Visa but the credit card number wasn't pre-populate as I had hoped. Here's a screen:
https://www.evernote.com/shard/s141/sh/5cfce2b8-da2f-4147-abf5-5d742995b3ca/6d6e1541cbb5809e0e14972d2d81f4bb
I'm really at a loss now. Any help would be really appreciated :)
P.S. I've already tried the cliche test numbers like 4444333322221111 but nothing seems to work.
Try using some of these test credit card numbers. If it still does not work can you provide the API request you are sending, and the full API response you are getting back and I will look it up on my side and see whats causing the issue.
Visa Test Card Numbers - You can use 123 for the CVV2, and any valid future date for the exp date.
4916064324171157
4916884530887530
4024007135477981
4556908617562966
4929631921286961
4916781542208590
4502888845652562
4532975922625589
4024007116051706
4485137169794373
Accounts I create through the PayPal sandbox (created on http://developer.paypal.com/) are created with zero balance and no credit card regardless of what I set when creating the account.
This results in:
On payment page, a request for me to enter a credit card for the account
No paypal balance (tested by logging into the paypal sandbox).
I have tried creating multiple accounts, several with balances of $3,000 USD, one with a credit card set, another with paypal set, and always with credit card type of Visa. Always they are created blank.
Is this a PayPal related problem, or am I not creating sandbox accounts correctly?
We were able to reproduce this issue and PayPal is working to resolve it right now. I will reply back as soon as this is fixed. Sorry for the inconvenience.
Thanks,
I have paypal sandbox account. Everything works fine for single payments - I set business=test#gmail.com and make a payment using ..._biz#gmail.com account which was created under "Test Accounts" menu of the sandbox. However when I try to do the same for recurring payments, I get an error. At first everything looks fine - I get redirected to paypal where I can see the detail of subscription but when I try to sign in with ..._biz#gmail.com, it redirects me to a page that says: The link you have used to enter the PayPal system is invalid. Please review the link and try again.
Thanks ahead!
Well, I am not fully sure what exactly was wrong but in case someone else has the same problem and stumbles on this question: all I had to do is re-create both seller and buyer test accounts from under my main sandbox account. The accounts that I tested on seemed valid but they were created many months (if not years) ago so probably paypal had some wrong (i.e. old) configs associated with them. The newly created accounts work just fine.