Paypal is not defined (errorr) when making the payment integration live
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had integrated PayPal Venmo to my mobile application using Paypal standard checkout flow, the payment flow is working fine in the sandbox environment but when making this integration live means adding a live client id in JavaScript sdk is given me this error mentioned below
ReferenceError: paypal is not defined
at initPayPalButton (Payment.jsx:17:1)
at Payment.jsx:125:1
at invokePassiveEffectCreate (react-dom.development.js:23487:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:3945:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:3994:1)
at invokeGuardedCallback (react-dom.development.js:4056:1)
at flushPassiveEffectsImpl (react-dom.development.js:23574:1)
at unstable_runWithPriority (scheduler.development.js:468:1)
at runWithPriority$1 (react-dom.development.js:11276:1)
at flushPassiveEffects (react-dom.development.js:23447:1)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @Temp20230525za,
Thank you for posting to the PayPal community.
Please cross check your PayPal Business account and make sure it is verified and confirmed without any account limitations.
Try to process a test payment via card which is not linked to your PayPal account. Since, merchant can't process self payments.
If your still facing any issues, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detail information and error details.
Sincerely,
Chiranjeevi
PayPal/Braintree MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Get selected shipping address from setup-token endpoint in REST APIs
- Enable recurring payments/Reference Transactions - Adyen PayPal Drop-in integration - Sandbox Env in Sandbox Environment
- Is cmd=_xclick deprecated? in PayPal Payments Standard
- PayPal integration not showing card payment option on Systeme.io funnel builder in PayPal Payments Standard