PayPal REST API working in Sandbox, but not in live (using Node SDK) - paypal

we have a web app written in Node where we have a payment page that uses the PayPal REST API.
We have been testing the payment page using sandbox for a few weeks now without any errors and we went through the whole approval process to enable direct credit card payments on our account, but when we change the credentials and URL on our app to the ones from live, we get a Client Authentication error.
We have gone over this issue with integration experts over the phone (for hours) and opened a ticket with PayPal support and no one has been able to help us.
This is our debug ID:
Debug ID for sandbox: 7b06479ae1ef3 (successful payment)
Debug ID for live: 8843fb4d4cbcf (failed payment)
Exact same code, only thing that changes are our credentials and URL.
The few people we have talked to in PayPal point to it as a credentials issue, but we have created a new app in our dashboard and gotten new credentials only to get the same error.
What could be going on?
Is switching from sandbox to live not as simple as just switching the URL and Client/Secret?

Related

PayPal v.zero SDK error: "Sorry we cannot connect to PayPal"

I'm testing a new feature for a site I've built for a client that uses the Braintree v.zero SDK (using the PHP SDK + a simple custom UI, not the drop-in UI) to process PayPal payments. We've tested pretty extensively in sandbox mode, and are now trying to test in production mode with small transactions; but even though I've followed the steps to "go live" in the v.zero documentation (https://developer.paypal.com/docs/accept-payments/express-checkout/ec-vzero/testing-go-live/php/), when a user clicks the button to authenticate with PayPal, the popup window that opens just shows an extremely vague error message: "Sorry we cannot connect to PayPal. Please try again in a few minutes."
Is there some way I can get more clarity into what exactly is going wrong? The access token I'm using to create the Braintree gateway on the server side is valid for production, as far as I can tell, so I don't know what else the problem could be. I've seen a couple other questions where this type of error message is mentioned, but those all seem to have been non-US developers trying to set up sandbox accounts for US companies. My client and I are both in the US, and sandbox testing worked fine.
Thanks!

Paypal DG Express Cannot Use Sandbox. Live Account Works Fine

I have a Paypal Digital Goods Express payment form created using their wizard.
When I use our live account it works fine. But when I use the sandbox Business (Seller) account I created, when a user clicks on the 'Buy' button, the popup window appears with only this message:
SetExpressCheckout API call failed. Detailed Error Message: Short Error Message: Error Code: Error Severity Code:
I did some research and saw this article:
https://www.paypal-knowledge.com/infocenter/index?page=content&widgetview=true&id=FAQ1914&viewlocale=en_EN
It suggests that our hosting company needs to update their PHP/TLS, but I did the Curl test and it properly returns a 200 OK.
I also saw this Stackoverflow article:
Paypal "SetExpressCheckout" API method has stopped working with sandbox seller account
...where the problem was the wrong sandbox endpoint, but I've made sure that the endpoint is indeed:
https://api-3t.sandbox.paypal.com/nvp
...and it still doesn't work.
I've tried clearing my browser cache, using different computers to test and all with the same result.
Any ideas?
did you enable Digital Goods feature on your sandbox accounts?
If you have not enabled it on your sandbox account, please contact MTS(Merchant Technical Support)
https://www.paypal-techsupport.com/app/ask
to toggle it for your sandbox account.

Paypal App is "Conditionally Approved".What is the timeline to get it approved?

I have created and submitted a Paypal application ( using the classic API). The application is in a conditionally approved state. Paypal reached out and asked additional questions which I responded back with details. The application does not use the Paypal API to make payments. It only reads transactions related data and shows useful reports and insights for users. The API permissions requested are
1.Obtain transaction specific information.
2.Obtain your paypal account balance
3.Search your transaction specific information.
4.Search your transactions for items that match specific criteria and display the results
I was able to get a live app id and also have the API username, password and API signature. However since our app uses Paypal oauth, the permissions part doesn't work . My guess is this is because the app is conditionally approved. Is this the right assumption? Also what is the typical timeline for an app to get approved? My Paypal account from which I created and submitted the app is a verified account. I have sent messages from within my developer portal to support but I haven't heard anything back.
So far we have been working with a sandbox account. The live application I created is in a different account than the sandbox account. I am not sure if this is an issue.Would be great if someone who has been through the process can confirm.
Unfortunately there is not really a "typical" time frame for app approvals as too many factors go into the approval process. The best thing would be to call in to PayPal to inquire on the status.

How to test IPN from website with the new Paypal Sandbox?

I used to use the old PayPal sandbox to simulate a payment using IPN (posting a payment, and then confirming the IPN). This used to work fine with the classic sandbox.
With the introduction of the new Sandbox - I try to submit the request as I used to (redirecting the user to https://www.sandbox.paypal.com/cgi-bin/webscr?) which should take the user to the payment page - but this link now takes the user to the logon page for the sandbox.
Is this no longer supported?
I see there is still an IPN simulator, but I want to test the end-to-end round trip process from the user-perspective. This does not seem possible anymore.
Try clearing your cache and cookies prior to opening up the developer.paypal.com site and logging in. Also try using Firefox or Chrome if you are using Internet Explorer.

How do I get an application id for Paypal?

I received API credentials but I need api application id to send Adaptive Accounts API Requests.
I used their sandbox app id: APP-80W284485P519543T.
now it's time to go live.
In order to go live, you need to register your application with PayPal to obtain an application ID.
When you submit your application to PayPal for review, the application
is quickly scanned for the requests to PayPal operations. If no
"advanced" operations are found, PayPal issues an AppID for the
production servers at the time you submit the application.
Just because PayPal docs are kind of messy like #Deekor said in the comments, I think it would be good to leave the following links in case anybody like me is wondering where the hell do you REALLY get an AppID (e.g.: for adaptive payments).
Just go to PayPal Developer, once you log in, go to Create and manage Classic API apps or directly to PayPal Apps.
Create an app, once created you get a Sandbox ID which is you AppID and the LiveID as pending.
Date: 3/28/16 (new developer.paypal.com Adaptive APPID walk-through)
Hi All - I will update this since it's been a while. Please note this is for the classic Adaptive Payment APP ID (NVP/SOAP APIs) process and not for the REST APP or BrainTree V.Zero SDK.
Do the following:
Go to developer.paypal.com
Log in with PayPal Account email and password
Click the 'Dashboard' tab up top
Click 'My APPs & Credentials'
Click 'Create & Manage NVP/SOAP API apps link
On the redirect to the classic developer portal, Login to PayPal account you want to apply for the APP ID with (a business PayPal account is highly suggestive for underwriting approval)
For Live APP IDs it takes between 24-48 hours; you should get notified when approved. If you don't, contact business support. The number is in your paypal account / contact us section (pending status)
For SandBox you'll get the APP ID right away, regardless of how you applied; live or sandbox
You should see the APP ID in the classic developer portal in the 'manage your apps' section.
For REST APP ID please click here link