live api call does not work, sandbox call works fine

bagse2
Contributor
Contributor

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.

Login to Me Too
2 REPLIES 2

vaishnavib
Moderator
Moderator

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.

Login to Me Too

bagse2
Contributor
Contributor
Thanks for getting back to me so quickly. My asp.net web.config info was correct. Paypal environment value ="production". Also client ID and clientSecret was correct, however I had not updated Paypal environment to LiveEnviroment. All sorted. Thank you.
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.