#pmcneil7962
1 messages · Page 1 of 1 (latest)
Hi 👋 I think the issue may be that the name of the object you're passing in doesn't match any parameter names, so the call to confirmPayment doesn't know what you're passing into it. does the error resolve if you pass the Payment Element instance in as?
elements: this.paymentElement
I'll try that right now. Thanks for your quick response. But, according to the docs, it says to pass the stripe.elements object, not the paymentElement object. Just to confirm?
Oh oh, good catch, sorry about that.
It would be the Elements instance that you would want to pass in.
so { elements: this.elements; }
that did fix the error!
however, i dont want to redirect the user anywhere , so i didnt pass in redirect params
I will try redirect: "if_required"