#hana ito
1 messages · Page 1 of 1 (latest)
With Payment Element, you shouldn't need to set payment_method when confirming the payment. It should look like:
const result = await stripe.confirmPayment({
//`Elements` instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://example.com/order/123/complete',
},
});
Reference: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
thank you. I'll try
No problem! Happy to help 😄