Invalid Env: live

kabuky
Contributor
Contributor

Hi guys,

 

My Paypal integration into my ecommerce website has been up and running well for few months. But recently I have complaints from customers that they cant use paypal to make payment. I have checked and realized that there is an error with the checkout library. Here is the error in details:

 

Error: Invalid env: live at Object.props.env.validate (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:184503) at u (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:131508) at t (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:132428) at n.setProps (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:113164) at new n (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:107383) at n.init (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:85409) at new controller (https://*****.com/lib/paypal-checkout/dist/checkout.4.0.121.min.js:6:138965

 

I did not change any setting for the Paypal settings, and I already had customers who made the payment with Paypal in the past. Any ideas what have gone wrong?

 

Regards,

Anthony

Login to Me Too
1 REPLY 1

jengineersales
Contributor
Contributor

Most like likely you set the environment to "live" when it should have been set to "production". Same error happens if you use the vue-paypal-checkout package from npm and set the env to "live".. 

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.