Cards won't work with paypal sandbox testing - paypal-sandbox

I'm trying to create a simple subscription payment on sandbox PayPal.
I have a business account on sandbox, with which I have created a subscription plan.
Furthermore, I have a test user on sandbox with a credit card generated here: https://developer.paypal.com/api/rest/sandbox/card-testing/
Everything works fine but when I get to the payment confirmation I get this message: "Sorry, cannot use your chosen payment method to set up subscription item. Please try other payment method"
I tried using other cards or creating another test user but I always get this same error.
I've also posted the question in the paypal community but didn't get any response: https://www.paypal-community.com/t5/Sandbox-Environment/Subscriptions-payment-declined-because-test-card-not-working/m-p/3023752
Second problem: When i make a simple payment it works fine, but when I try the pay in 4, it tells me to setup a card (even though I already have a card setuped) and when I try to resetup it on the payment modal I get the error : "We cannot process your request at this time. Try again later."
I thought maybe if I add credit to my test account I can bypass this. But when I go to the page to add credit (https://www.sandbox.paypal.com/myaccount/money/addmoney/topup) it's blank and there are errors in the console.
So I tried to send money to me test account from another account and it doesn't work either...
I was wondering is there like an option or something I have to activate or disable in the settings so my test will work, or is the PayPal sandbox environment just bugged ?
If you need anymore informations or details don't hesitate to ask, I'm not sure if my explaining was clear.

Create a new sandbox personal account at https://developer.paypal.com/dashboard/accounts . Use that account to test the subscription.
The result of Pay in 4 payments is a PayPal payment. You can already test PayPal payments without Pay in 4 as a funding source. So, do not test Pay in 4 in sandbox. There is no reason to.

Related

Paypal sandbox payment succeeded but not showing in sandbox summary

Hello Everyone i am using pay-pal sandbox for pay-pal express checkout. I am getting success and my payment Id, token id and payer Id also generated. But when I am going to sandbox summary, its not showing under my payment transactions.
Can someone please tell me what i am doing wrong? If payment got succeeded then why its not showing in summary area.
Sounds like you are using REST API and you have successfully "Create Payment".
You will need to fully run "Execute Payment" to complete the transaction. You can refer here for more information:
https://developer.paypal.com/docs/api/payments/#payment_execute

Error with paypal sandbox account during testing of payment

I want to implement paypal IPN at my website. For that purpose I created 2 paypal sandbox accounts of type business (seller) and personal (seller) through my paypal developer account. Thereafter I created buy now button at my paypal sandbox business account with item name, code, price etc. and generated a code for buy now button, pasted it on my website. For first 2 weeks testing work smoothly after it started giving errors like
Sorry we cannot complete your purchase at this time. Please return to the merchant and choose other way to pay
Hence again I created 2 separate sandbox accounts, again same problem happened after 2 weeks. What is the reason behind this type of errors and how to rectify it?
This type of error is mainly due to using same credit card or banking account at buyers sandbox account.One need to use different credit card and bank account for too many test transaction performed through sandbox accounts.

PayPal dummy accounts

This is completely new territory for me. I'm in the process of getting up to speed with WordPress with the aim of using it as a resource to raise funds for charities. I've been looking at links such as:
https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/
and
https://www.paypal.com/us/selfhelp/article/How-can-my-charity-or-nonprofit-use-PayPal-to-collect-donations-FAQ1068
together with a number of other resources, but I need to know exactly where to start from scratch.
Basically I would like to set up a test PayPal account which can accept dummy credit card numbers for both dummy deposits and withdrawals in order to test it out in such a way that from a WordPress theme I can make mock donations, then check that the "balance" has been credited, then be a dummy charity that can make mock withdrawals.
Presumably there are free test accounts that can do this with documentation. I've looked at some of the documentation, but it would be nice to know where to start, as there is so much.
Looking forward to some friendly and helpful reply.
Christopher Sharp
To answer this question simply, use https://www.sandbox.paypal.com.
If you want to manage all your sandbox accounts, you will need to create the accounts within PayPal Developer.
Visit PayPal Developer and sign up for a PayPal account or login to an existing one.
To access PayPal Developer site, you need to login with a real PayPal account (non-sandbox).
Create a sandbox account after logging into PayPal Developer.
You will be creating a testing account you will use when logging into the testing environment.
After creating all the accounts you need, ie. receiving side (you) & sending side (donator), you can use these accounts to make sandbox transactions.
Basically, production is www.paypal.com and sandbox (testing) is www.sandbox.paypal.com.
As with PayPal integration with WordPress, there should be a lot of plugins for this. You can even just generate a HTML donate button from within your PayPal account to create a donate button that will send donation to that account which generated the button.

Paypal Sandbox doing crazy things

First of all , the test accounts I created were not working. So, I removed all Paypal cookies.So, now good thing I can login into test accounts but can't access My Settings and My Selling tools under My Profile. I'm trying to create Buy Now button in My Selling tools.
Also, My Paypal live account is for Paypal Payments Standard(My Business Setup->My payment solution) and in test account the payment solution is Paypal Payments Pro and doesn't let me change this option.The links in my business solution (View all products to learn more or select an additional payment solution or we can recommend one that fits your needs.) goes to PayPal live site.
Any one facing this crazy PayPal sandbox behavior !!!
When you say you can't access My Settings and My Selling tools under My Profile, are you getting an error or what is it doing specifically. The Pro account that you have in sandbox, will work for testing Website Payments Standard. Also, another option if you can't create test buttons from your sandbox account would be to log into your live account and create a non hosted / clear text button. Then you would just modify the button code, and change the URL in the form tag from the live site to the sandbox site. Also, you will need to change the value of the business variable and set it to either the email address of your test sandbox seller account or the merchant id. Another work around that has worked in the past as well, is going into your live account and going to the page you are wanting and copy the URL from the address bar and just modifing it to include the sandbox URL.
So if my live site URL was something like:
https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=
I would just change it to
https://www.sandbox.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=
Also, if you can give me more details about what is happening when you try to access your profile in your sandbox account I can look into it further.

PayPal sandbox - none of payments in the Business's account history

'm using the project http://www.codeproject.com/Articles/42894/Introduction-to-PayPal-for-C-ASP-NET-developers to test the PayPal's sandbox. I have a sandbox account, inside it I have a business account (for some reason I see Business Unverified) and also a Personal Verified account to do some payments. After running that project, i process to payment using that Personal account data. After the payment completes I still don't see that payment in my Business account. Why ?
Try this to verify your business account
Go to your Test Accounts page
Select the Unverified account.
Click the Enter Sandbox Test Site button.
A new window will pop up that looks very much like the actual www.paypal.com, except it says PayPal Sandbox at the top and a text saying Test Site below it. E-mail of the Test Account should be filled out already.
Enter the password (that you hopefully remember or noted down) and sign in.
Go to the My Account Overview page.
Below the “Welcome, Test User” header, it should say “Status: Unverified. Get verified”.
Click on that “Get verified”-link.
From here the process might vary a bit depending on what country you selected for the test account. I selected United Kingdom (or rather, it was the default and I didn’t bother changing it).
On the “Get verified by linking your bank account”-page, click on the “Link Bank Account”-button.
Routing number and Account number should be filled out already.
Fill out Bank name, if you feel like it
Click Continue.
Put whatever you feel like in the two “Confirm deposits-fields.
Click Submit.
Done. It should say “Bank account confirmed”. Also, if you go back and refresh the Test Accounts page, it should say Verified on the account.
OK, I've figured it out.
I had to provide int the Web.config file my own PayPalUsername (that sandbox business account email),
PDTToken (using that tutorial)
APIUsername,APIPassword,APISignature (using that tutorial)

Resources