#sparkling_armadillo_08414

1 messages · Page 1 of 1 (latest)

delicate zodiacBOT
#

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.

graceful escarp
#

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

long ocean
#

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?

graceful escarp
#

Gotcha, then you want to pass the clientSecret as an argument to checkStatus

#

Based on wherever you are calling checkStatus

long ocean
#

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.

graceful escarp
#

What are you trying to do here exactly?

#

When do you want to check the status of the PaymnetIntent?

long ocean
#

after

graceful escarp
#

after what?

long ocean
#

after payment submitted

graceful escarp
#

Okay then you want to call it after confirmPayment() resolves successfully