Skip to content
Advertisement

PayPal Checkout : LiveEnvironment class not found

I am making a website with PayPal integration and I’m looking at the tutorial … In sandbox everything works fine, but in Live it’s not working…

The point is, the payment is well executed, but then I try to retrieve the order informations and I get :

JavaScript

This is my PaypalClient.php class :

JavaScript

Can anyone help me please?

Advertisement

Answer

Ok … I found the solution … So …

In the tutorial it’s said : “use LiveEnvironment instead” … It’s WRONG (thanks PayPal!!! Really) the correct class name is ProductionEnvironment !

Can PayPal modify his tutorial please : https://developer.paypal.com/docs/checkout/reference/server-integration/setup-sdk/

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement