When clicking on a payment button generates error: Unexpected token ...
wesparsons77
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Mar-25-2024
05:41 AM
When clicking on a payment button I get a response message: Could not initiate PayPal Checkout... SyntaxError: Unexpected token '<', "
Everything works fine in the Sandbox but when I go live on my site I get this erros when a payment button is clicked. I checked bothe the app.js and server.js files and I'm getting all the correct data for the product sale. The error seem to be coming from the token creation section and I don't know what needs to be done in order to correct this. Any help would be great... Thanks.
0 REPLIES 0

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Generated Subscription Buttons show the Error 500 if clicked in Sandbox Environment
- GitHub sample code for creating an order via the PayPal REST API generates authentication error in REST APIs
- 400 Bad Request when button pressed - happening more frequently! in PayPal Payments Standard
- Error When Clicking Go to PayPal Checkout in REST APIs