#sai-eswar-7_code

1 messages ยท Page 1 of 1 (latest)

long cragBOT
#

๐Ÿ‘‹ 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.

crystal crestBOT
#

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.

vestal elm
#

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?

strange oak
#

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?

vestal elm
#

Not sure I understand, can you provide more details? What URL? And where exactly do you want to show it?

strange oak
#

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.

vestal elm
#

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.

strange oak
#

But I've the requirement to show a button with verify payment method as the label.

#

How then?

vestal elm
#

Can you tell me more about your requirement? What does this button do exactly?

strange oak
#

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.

vestal elm
#

What do you mean by verify it? Verify it how?

strange oak
#

refer to this

vestal elm
#

Ah, okay, so you're talking about microdeposit verification for bank accounts?

strange oak
#

yes

#

I've mentioned it already right

vestal elm
strange oak
#

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.

vestal elm
#

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.

strange oak
#

The user gets email immediately after submitting the bank account details in the stripe element modal?

vestal elm
#

No, I think we only email them later, when we think the deposits have gone through.

strange oak
#

What do you think here? My requirement can't be implemented?

vestal elm
#

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?

strange oak
#

yes

vestal elm
#

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.

crystal crestBOT
strange oak
#

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.

drowsy raptor
#

๐Ÿ‘‹ catching up here
Can you share the test SetupIntent ID you've been testing with?

vestal elm
#

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.