#Hân Trần JP-ConfirmPayment
1 messages · Page 1 of 1 (latest)
@high creek Hi, when trying to debug, I'm seeing that after called stripe.confirmPayment it's just stopped there instead of go to case 6. No error or warning in the console output.
it's on line 6538 you wrote return stripe.confrimPayment...
I mean it's the code after compiled from the code I just sent you
const result = await stripe.confirmPayment({
//`Elements` instance that was used to create the Payment Element
elements,
confirmParams: {
return_url: 'https://dev.abc.xtz/order/123/complete',
},
redirect: 'if_required'
});
I don't know what compiler you're using or how it's compiling
all I can tell you is that in the code you shared there was a return statement near stripe.confirmPayment which is inside a switch case which explains why the other breakpoint is never reached
The main point is the stripe.confirmPayment doesn't work but doesn't throw out any error, what should I do to clear this? I'm using ReactJS with the instruction from https://stripe.com/docs/stripe-js/react#elements-consumer