wobsoriano / solid-stripe

Solid components for Stripe.js and Stripe Elements.
https://solid-stripe-demo.vercel.app
MIT License
26 stars 1 forks source link

IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment() #18

Open RATIU5 opened 3 days ago

RATIU5 commented 3 days ago

Using the example that was provided, I received the following error upon checkout.

IntegrationError: You must pass in a clientSecret when calling stripe.confirmPayment().

I logged the result of my client secret, and it logged successfully. I even tried hard-coding in the client secret value, and I still get the error.

Refer to the example in the README for the code. The versions that I'm using:

"@stripe/stripe-js": "^4.9.0",
"solid-js": "^1.9.3",
"solid-stripe": "^0.7.0",
"stripe": "^17.3.1",
wobsoriano commented 3 days ago

thanks for reporting, Ill take a look asap

RATIU5 commented 3 days ago

Thanks! I tried implementing elements using plain JS/HTML and it worked fine. Also for more information, I'm using Astro for SSR and astro islands. Not sure if that has any effect on this. I will try to reproduce in Stackblitz shortly...

RATIU5 commented 3 days ago

Update: I think this may be an issue on my end on how I setup my backend logic. I believe I'm passing in the wrong type of secret. I will try to get it working with this in mind. I will also update here if it fails.