craftcms / commerce-stripe

Stripe payment gateway for Craft Commerce
https://plugins.craftcms.com/commerce-stripe
MIT License
30 stars 50 forks source link

Missing Client Secret, possibly related to "Payment Method Id cannot be blank." #214

Closed tomjrjones closed 2 years ago

tomjrjones commented 2 years ago

In the Readme it states in the javascript section once you have produced a stripe object you need to create an instance of the stripe elements:

var elements = stripe.elements();

But in the stripe documentation it states

var elements = stripe.elements({ clientSecret: 'CLIENT_SECRET', });

How are you handling the client secret or is this something that we are missing, as currently I get a "Payment Method Id cannot be blank." error. I was wondering if the missing client secret is related to this error ? I am aware there is already an issue open for the payment error.

https://github.com/craftcms/commerce-stripe/issues/213

Keep up the good work at Pixel & Tonic

Cheers, Tom

Additional info

pixelmachine commented 2 years ago

@tomjrjones I see you solved the issue but did you manage to get the clientSecret or just go with the old setup?

westhouseit commented 1 year ago

@tomjrjones any update on the question by @pixelmachine?