PayPal sandbox which credit card to use? - paypal

I am using the sandbox url for accepting test payment through paypal.
When a user clicks a button he is redirected to paypal sandbox site. On the paypal sandbox site the user is presented with an option to pay using credit card. However when I try test credit card 4111-1111-1111-1111 it gives me the following error "The card you entered cannot be used for this payment. Please enter a different debit or credit card number."
I am not sure what am I missing?

The numbers provided in the documentation are used so much that the sandbox servers just don't accept them anymore. They really need to update the docs.
I would recommend generating fresh credit card numbers to use. I always use this site for that. The numbers it generates will work fine in the sandbox.

Related

Bank wasn't able to verify your VISA while payment

I am new to PayPal integration I am testing the payment process but facing some issue while checking out. I tried all mention cards in PayPal website but didn't work any.
Error Message:
Sorry, your bank wasn't able to verify your VISA x-**** at this time.
Please choose another way to pay.
Go to the PayPal Dashboard from the account from which you created the Sandbox accounts and PayPal app. There in the Mock section in the side navigation go to Credit Card Generator. Here select the country that you have chosen while making the business sandbox account and click Generate CC.
Now copy the details of the card generated. Now go to the site where you have integrated PayPal checkout and while making payment instead of choosing the default card click on add Debit/Credit card and add a card with the details the card that you generated. You'll be redirected to a payment page, fill a random password there and your dummy transaction will be completed if everything else in the code is fine.
You need to go to your paypal developer account and then find the mock menu and then select credit card generator
Generate a credit card based on your county
Now try to add a new card on the Paypal page where you are getting error.
Enter the details of the mock card
Then again try to do that payment.
You may be asked to enter a password. Just click on the new-user/forgot password link.
Everything will work fine
I faced this similar issue while integrating Paypal with my app. What I did found that Paypal integration for sandbox account does have an issue while payment if the currency used, is other than USD.
Yes, other solution may work if you want to generate a fake credit card and add it to the Paypal page.
But if you don't want to add any other credit card to the Paypal account and use it for testing purposes, what you can do is to change the country of both business and personal accounts to USA & currency to USD, also set the app to accept the payment in USD.
It will work fine.

Cannot pay in PayPal sandbox?

I am using Express Checkout, and when testing in sandbox, I used to fill in fake but valid credit card numbers, like those produced by this site: http://www.getcreditcardnumbers.com/
It all worked fine until recently I found that PayPal sandbox no longer accepts these numbers. The page keeps showing "The card you entered cannot be used for this payment. Please enter a different credit or debit card number."
However I did find one card number 4444333322221111 that makes PayPal sanbox show a different error: "You might already have an account, Please login." Maybe this means that PayPal does not simply reject any card number.
I also tried creating a test account in Dashboard > Sandbox > Accounts, and use the card number inside the Profile section, but that didn't work either. So how should I test in PayPal sandbox?
When making a testing in Sandbox for credit card, you must make sure the card number hasn't been used anywhere in PayPal. Use http://www.fakenamegenerator.com/ to get a fresh card number.
paypal provides a list of creditcard numbers for testing purposes
https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

Paypal sandbox card payments not working configured cards

I have tried adding credit cards from the sandbox site Profile -> Credit/Debit Cards, and then used those cards that i added to test via the sandbox site. But none of those cards seem to work.
Further I've also tried the cards that are created via the developer.paypal.com. Even those cards aren't working and i get the same error as below each time.
However the payments does go through the default buyer paypal account created in the developer.paypal.com site. But the card configured for the same account seems to fail
Can someone point me where i might be going wrong ?
The card you entered cannot be used for this payment. Please enter a different debit or credit card number.
Further I've also ensured my "Payment Receiving Preferences" in profile page is enabled to receive all payments.
Thanks,

PayPal error while trying to pay with credit card in sandbox

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.

Does PayPal always return a payer_id?

I understand that when the customer logs into PayPal and uses their PayPal account, PayPal will send us the customer’s payer_id. But what happens if the customer does not log into PayPal and just uses a credit card to process the payment? Does PayPal still supply a payer_id in that case? And is there any way to fake that in the Sandbox? Does PayPal supply test credit card numbers? One for Success, and others for various types of failure?
(This is PayPal Website Payments Standard.)
The answer I received from the PayPal developer forums was:
A payer_id is returned whether the
buyer pays with a PayPal account or
uses their credit card without logging
into an account.
You can generate test card number in
the sandbox by following the steps
below:
First login to your buyer sandbox
account and generate a test credit
card by following the steps below:
Click on Profile
Click on Credit card
Click on Add
Select the card type (currently, the
sandbox will generate test visa card
numbers)
Copy the card here and click on cancel
** Don't add the card to your account**
Now use this test card number, any
expiration date in the future, 000 for
the CVV2 number, any address in a
valid format and any name to test
again.
These test cards will result in a
success. For website payments
standard, to simulate failure with a
test card number, you can enter any
random 16 digits for the card number.
However, with website payments
standard, if a transaction fails, no
response is sent to the merchant.
Thanks.