live api call does not work, sandbox call works fine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My sandbox call works fine. I have changed paypalEnvironment enviroment to production. Also changed the client id and secret id to the live/production passwords. When I try to make a call on my website as I successfully have with sandbox credentials, the live transaction does not work. I get to the first page with the two buttons. I click on pay with paypal and straight away I get a declined message. No error log, or recent transactions are logged on my developer dashboard. I do not know what i am doing wrong.
thanks for any help or advice.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @bagse2,
Thank you for posting to the PayPal community.
I wanted to bring to your attention the importance of verifying the API credentials you are currently using. It is crucial to note that your LIVE account API credentials can only be utilized within your LIVE environment, while your sandbox account API credentials can only be utilized within your sandbox environment. Please be aware that the credentials cannot be interchanged between the two environments.
To help you with the integration process, please find below the link for the sandbox integration URL: https://developer.paypal.com/tools/sandbox/accounts/.
Additionally, I would like to provide you with the link for the Live account integration URL:
https://developer.paypal.com/docs/multiparty/create-account/.
Once payment is done, perform Transaction Search API from a business account to get transaction details.
If you are still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detailed information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Django-paypal form is not showing "pay with credit or debit card" option in Braintree Server-side Integration (PHP, Java, .NET, Ruby, Python, NodeJS SDKs)
- Unable to issue a refund from our business sandbox account in Sandbox Environment
- Paypal Sandbox webshook (SANDBOX WEBHOOKS) not working Real time issue not trigger in Sandbox Environment
- Paypal 3DS intigration error in NVP/SOAP APIs
- PERMISSION_DENIED trying to refund capture in live mode in REST APIs