#sai-eswar-7_code
1 messages ยท Page 1 of 1 (latest)
๐ 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/1214648529650450452
๐ Have more to share? You can add more detail below, including code, screenshots, videos, etc.
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_setupintent-nextaction, 1 hour ago, 31 messages
- sai-eswar-7_docs, 6 hours ago, 7 messages
Hello! stripe.confirmPayment is designed to perform a full page redirect in all cases. The .then block in your code will only be run if something goes wrong on the page itself before the redirect. stripe.confirmPayment should handle whatever next action there might be; why do you want to access it yourself?
I want to store the url for verification page in database so that I can show it on the UI to navigate.
What's the way here for me now?
Not sure I understand, can you provide more details? What URL? And where exactly do you want to show it?
stripe verification page url which we get in the confirmation email.
I'll show a button with label as verify payment method, on cliking this I'll be redirected to the stripe verification page.
I'll show it in the payment methods section.
That's not how the next action piece works. When you call stripe.confirmPayment the next action will be handled for you by Stripe.js, you don't need to worry about a URL or anything like that.
But I've the requirement to show a button with verify payment method as the label.
How then?
Can you tell me more about your requirement? What does this button do exactly?
it'll just take us to the url which we get in the verify payment method email.
So for this I need to store this and show this on the UI for the user to make sure that they can immediately see their payment method is in pending status and they need to click on that btn to verify it.
What do you mean by verify it? Verify it how?
Ah, okay, so you're talking about microdeposit verification for bank accounts?
Have you read through this documentation yet? https://docs.stripe.com/payments/ach-debit/set-up-payment?platform=web#web-verify-with-microdeposits
yes.
I already had a chat with you guys and they told me to use confirmSetup
I'm tired of this. I've been working on this since very long time. Please let me know in your experience if you know the exact answer. I really need a way to get it done.
Okay, let's back up a bit. The way this works is that you call confirmSetup which will initiate the microdeposit process for ACH. That takes some time. Later, the customer will get those deposits and then you can send them to the hosted_verification_url on the Setup Intent: https://docs.stripe.com/api/setup_intents/object#setup_intent_object-next_action-verify_with_microdeposits-hosted_verification_url
You get that when you retrieve the Setup Intent from the API on your server.
The confirmSetup part happens when the customer provides their bank info. The verification piece with that URL happens days later. The two things aren't direclty connected to each other.
The user gets email immediately after submitting the bank account details in the stripe element modal?
No, I think we only email them later, when we think the deposits have gone through.
What do you think here? My requirement can't be implemented?
As I understand it you want to put a button on your website that will take your customer to a page where they can put in the microdeposit amounts to verify their account. Is that correct?
yes
You can do that. You retrieve the Setup Intent from the API, get the hosted_verification_url property, and have your button send them to that URL.
here's the trick, I can't do anything after confirmSetup since it's not executing anything once confirmSetup is done(goes to the return_url provided). So I can't get the setupIntent.
๐ catching up here
Can you share the test SetupIntent ID you've been testing with?
To clarify, this does not happen client-side. This does not happen immediately after confirmSetup. This happens entirely on your server. Your server retrieves the Setup Intent, gets the URL, and renders the button on the page that's loaded. It has nothing to do with the confirmSetup process.
The confirmSetup process has to happen first, in order to get the URL in question to show up, but there's no direct link between confirmSetup and displaying the button in question.