#sai_setupintent-nextaction
1 messages ¡ Page 1 of 1 (latest)
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.
- sai-eswar-7_docs, 3 hours ago, 7 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question. Thank you for your patience!
âąď¸ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime! If this thread is closed and you have another question you'll need to start a new thread.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1214601228382904320
đ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
@waxen rune there?
Please refrain from trying to tag our team members, it pulls our attention and slows us down. There are a lot of ongoing threads at the moment, I'm now reviewing your message.
Do you have the ID of failed requests that you ran into, or can you provide more clarity on what you're doing and where you're running into problems? Are you following one of our guides that I can reference?
ok, sorry
I've added automatic as the verification method while creating a setupIntent.
Because of that I can see the link that I've highlighted in the img.
Now when I click this I get stripe modal which asks for routing number and account number.
Once I give that and submit the form I'll get accept terms UI.
On accepting I submit the whole form upon which I'm calling the stripe.confirmUsBankAccountSetup(clientSecret,data?) method.
Here I want to get the next action field in the response object but I'm getting error instead If I provide(hardcode) only clientSecret else next_action if I provide data as well which has routing number and account number.
But I ca't have access to those values since it's in stripe modal.
I want to know How I can get the next_action data here.
Hm, sorry, I think I'm confused. If you're using the Payment Element, I don't think you need to handle the next actions.
Maybe I'm misunderstanding what you're trying to do?
I want to store the next_action data in the db. It has the link to the verification page.
In order to show the user the payment method in pending verification state we need this.
So if they click on verify then we'll navigate the user to the link in the next_aciton
Also, if you're working with the Payment Element, you should be using stripe.confirmSetup rather than stripe.confirmUsBankAccountSetup.
yeah we've it already. but that returns only the error but not the what we want. I'm using confirmBankAccountSetup when I'm adding a bank account.
Here please guide me how I can get the next_action.
I need to know what you're doing to be able to guide you on that. Are you going to use the Payment Element, or are you going to build your own form?
I'm using the stripe payment element.
In that case, I think what you want to do is call confirmSetup and allow the Payment Element to handle the flow. Once the customer has finished interacting with the Payment Element, you can retrieve the Setup Intent to check whether it has next_action.
You can retrieve that either from your frontend (though this is a redacted version, you'll need to double check whether next_action is provided here)
https://docs.stripe.com/api/mandates/object#mandate_object-status
Or you can retrieve the Setup Intent from your backend:
https://docs.stripe.com/api/setup_intents/retrieve
I can't do this and check in the frontend since the UI gets reloaded immediately after submission. So I'll try doing it in the bankend. Are you sure that I can get the valid next_action in the backend if i try rerieving it ?
next_Action is not in the response of confirmSetup
sai_setupintent-nextaction
What does "get reloaded immediately" mean? Unfortunately this is quite confusing right now with the way you are explaining things so it's tough to help
confirmSetup({
elements,
confirmParams: {
return_url: props.redirectOnSuccess,
},
})
This method takes return_url which is used for redirecting after confirmsetup is successful.
Yes that's expected. So what's the problem exactly? After the redirect you can check the SetupIntent's status/next_action
In frontend I can't get it I think.
Any ways I'll try from the backend.
Thanks a lot for the help.