#pmcneil7962

1 messages · Page 1 of 1 (latest)

neat edgeBOT
tidal relic
#

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

gusty walrus
#

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?

tidal relic
#

Oh oh, good catch, sorry about that.

#

It would be the Elements instance that you would want to pass in.

gusty walrus
#

so { elements: this.elements; }

neat edgeBOT
gusty walrus
#

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"

tough zealot
#

Yeah that's what you'll need

#

return_url is required

#

Some payment methods need a return_url (redirect based ones)

gusty walrus
#

perfect, working great

#

thank you so much for your quick response!!!