#sparkling_armadillo_08414
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- sparkling_armadillo_08414, 19 hours ago, 59 messages
- sparkling_armadillo_08414, 22 hours ago, 4 messages
Hi there
So looks like you aren't using a redirect here
checkStatus in this case is trying to fetch the clientSecret from the URL
Which would be populated with the clientSecret if you were actually using a redirect
But you aren't since you have redirect: if_required in your confirmPayment() code
I don't want to remove redirect: if_required because I don't want users to be redirected to a different page
how can i populate it with having redirect?
Gotcha, then you want to pass the clientSecret as an argument to checkStatus
Based on wherever you are calling checkStatus
I called checkstatus at the end of initalize with clientSecret as argument, now thanks to you checkStatus gets clientSecret but what i realized is paymentIntent.status gets resulted before payment is submitted, payment getssubmitted and it never goes back to change the status.
What are you trying to do here exactly?
When do you want to check the status of the PaymnetIntent?
after
after what?
after payment submitted
Okay then you want to call it after confirmPayment() resolves successfully