Home > Net >  PayPal JS SDK Checkout : fetch returns error 500 when switching from sandbox to live
PayPal JS SDK Checkout : fetch returns error 500 when switching from sandbox to live

Time:09-29

The PayPal JS SDK works fine in sandbox mode, but in Live I keep receiving a 500 error.

I am successfully authorizing credit card payments using the SDK but an error message in enter image description here

CodePudding user response:

In the PHP...

if($gateway_data['dev_mode'] == true)

..ensure this configured value is set to false so that the code communicates with the PayPal live/production endpoints, as well as changing the clientId and secret to be from the an application from the "Live" tab of My Apps & Credentials

  • Related