#mahraamir
1 messages ยท Page 1 of 1 (latest)
I mean the return URL I am providing for confirming payment, stripe is calling back two times
const {error} = await stripe.confirmPayment({
elements,
confirmParams: {
return_url: capp_return_url,
payment_method_data: {
billing_details: {
name: cname,
email: cemail,
}
},
}
});
oh really?
pi_3OKeUDL9quFZ1jsw132VMNkO
are you sure your code isn't running twice?
no
how can you tell it's calling it twice?
that doesn't prove that it's the stripe.confrimPayment that is calling your return url twice
this only means that the code that inserted these rows is being called twice
did you happen to debug your code to find exactly what's happening?
I am trying obviously but couldn't find duplicate thing
one thing is sure, I am calling confirm once because stripe log is telling
yes you're totally right
just a quick question
what does it change for you if the returnURL is hit twice?
does you returnURL has any special "fulfilling" logic?
I have a logic based on that
like deducting balance
sending emails
so everying is bineg done twice ๐