Stripe integration Uncaught (in promise) IntegrationError: fetchClientSecret failed with error "JSON.parse: unexpected character at line 1 column 1 of the JSON data"

For everyone getting this error.

DO THE FOLLOWING:

  1. Check if your data store is correctly formed! Differentiate in this menu between "WHICH" and "UPDATE" when you follow this tutorial: Wappler Documentation - Using Stripe Embedded Checkout and especially this one, when it comes to setting up multiple products: Wappler Documentation - Getting Started with Stripe Integration in Wappler
    correct2

AND MAKE SURE TO DEACTIVATE CSRF-TOKENS ON NODEJS OR DEACTIVATE IT IN THE SETTINGS FOR THE API ACTION YOU ARE USING!

  1. If you get the following error:

a) Check the server logs for errors!
My issue was that the embedded type of the checkout doesnt accept a success url or cancel url.

b) Another Solution: Check if your server action even still exists. Because of the CSRF bug, when deactivating CSRF again, the stripe server action can somehow transform.

1 Like