#Hân Trần JP-ConfirmPayment

1 messages · Page 1 of 1 (latest)

high creek
#

👋 happy to help

#

could you please elaborate more?

main skiff
#

@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.

high creek
#

you're returning

#

means you're breaking out of the switch case

main skiff
#

huh?

#

But this is the code I took from the sample page>

high creek
#

it's on line 6538 you wrote return stripe.confrimPayment...

main skiff
#

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'
        });
high creek
#

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

main skiff