Error with paypal sandbox account during testing of payment - paypal-sandbox

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.

Related

Cards won't work with paypal sandbox testing

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.

Standard PayPal Sandbox Error Issue in Woocommerce

I have configured WooCommerce in WordPress and enabled PayPal Standard Sandbox with a client PayPal account email Id.
When I purchase 3 downloadable products for a Total amount of USD 3.25 with PayPal Standard payment gateway, I got this error:
"Things don't appear to be working at the moment. Please try again later."…
I checked PayPal settings, it is attached with bank and credit card.
Remember: As can check its not business account nor I filled "API credentials".
WooCommerce Paypal Settings screenshot:
What I am doing wrong?
If you enable Paypal Sandbox option, you need to get a testing developer account (as specified in related settings… see below):
This testing account doesn't need to be attached with bank and credit card.
That's why it doesn't work…
The developer account provide (for testing):
Admins account (where you will get transactions, notifications, errors)
Fake customers account for fake purchases.
Once registered your developer account, you will need to create a pair of admin + customers account for one URL shop.

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.

Pay through Paypal using a credit card

I have a requirement of integrating paypal in one of my asp.net website.
But I need to have a facility that One could pay through Paypal by using a credit card even if they don't have a paypal account. For credit cards, I don't have any idea of how can it be done through paypal development portal.
So can anybody let me know how to go about this and any reference link where I can find some details for this.?
I think one of the option I should go with is: PayPal Website Payments Pro but I have no idea about that and Is it a free service or a paid one.?
Thanks in advance.
PayPal Payments Pro does allow you to process credit card transactions using the Direct Payment API's. That product is currently available to US, UK, and Canadian merchants. The REST credit card process mentioned is only for US merchants at the moment.
Payments Pro isn't free. There a $30 a month fee.
Payments Standard and Express Checkout are both free and don't require that your buyers have a PayPal account but they are required to redirect to the PayPal site to log into their account or enter their credit card information.
If you have a more specific question I can help you further.
You can make credit card payments via the new PayPal REST API. Depending on your use case check the documentation for sale (directly charging a card), or authorize and capture. You also have the option of storing cards in the vault for later use.
I do not know whether you have gone through the Paypal developer's FAQ. Please go through this link once-
https://developer.paypal.com/webapps/developer/support/faq
Ideally to integrate paypal to a development site, A business account needs to be created.So when the user clicks on the pay now button on your site you send that userId and password to Paypal webservice and authenticate yourself as business user. it redirects to teh paypal site after authentication. So even if the user does not have an account with paypal they can pay using paypal(Which authenticates your site).
All the paypal integration is paid service.

Paypal sandbox. Unable to confirming bank account on test accounts and buy subscription

I have created several preconfigured buyers test accounts over the week. Not a single one of the generated bank acount is confirmed. I have gone through the steps on the documentation to no avail. On some of them it errors on the continue button under complete bank setup. It has a Deposit not sent on the Bank Account details above the button. Is says Sorry, an error occurred after you clicked the last link ... We are sorry, we are experiencing temporary difficulties. Please try again later. If this error occurred while making a payment, avoid duplicate payments by checking your Account Overview before resending a payment. I have cleared cookies and all cant move forward. On others I get to do the full submission and get to the end with a congratulations u have confirmed your account. However on the test account site it shows unconfirmed.
Also I cannot purchase a subscription at all with any of the accounts. It says cannot use this card please choose another source of funding.
Thanks for your help
I just tested this set-up. If you create a preconfigured personal buyer account from developer.paypal.com, the bank account should already be confirmed and verified. When you create a preconfigured account make sure to select "Buyer (use to represent your customer's experience)" and not "Buyer In-store (Use to represent your customer's experience with in-store checkout)". The In-store checkout does not give you a confirmed bank account.
When you create a In-store checkout Buyer Account, you will see the following error: Account Created Successfully but failed to add Credit Card and Bank.
To test a merchant transaction, you must use a test Business Account
To test a buyer transaction, you must use a Personal Account

Resources