#teevee_code

1 messages ¡ Page 1 of 1 (latest)

modern kernelBOT
calm horizonBOT
#

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.

modern kernelBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 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/1257807971333836821

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

wary quarry
#

Hi there!

#

Reusing/re-displaying US bank accounts in a Checkout Session is not currently supported. Only cards will be re-displayed if they meet the criteria for redisplaying

fathom frigate
#

Ok, once a user verifies their bank account how do I save that account to the customer and let thme use the bank account for future payments?

wary quarry
#

let thme use the bank account for future payments
For future payments when they're off session? Also, based on the code snippet above, I assume you want to charge them and save those payment details for future charges at the same time?

fathom frigate
#

Yes I want to charge them and save the payment details for future charges at the same time. I don't believe the future payments would be off-session. user would navigate back to same checkout page for the next payment. I believe that would be on-session but im not sure.

wary quarry
#

I see, okay.

wary quarry
#

So Checkout will only prefill previously-saved cards, not bank accounts. You can use payment_intent_data.setup_future_usage: 'off_session' to save the customer's bank account details when they complete the Session and use the resulting PaymentMethod to create an off-session payment without having the customer come back to a new Checkout Session

fathom frigate
#

Im really confused. So I pay a $1.50 verification fee per bank account and save that bank info to the customer, but cannot use that data to complete another payment on checkout. The user has to re verify their bank account and I have to pay the $1.50 fee again.

#

How do off-session payments work? I am not familiar and do not know what that means.

wary quarry
#

Happy to clarify

#

Checkout is (mostly) designed to collect new payment information. If an existing Customer has a non-card saved Payment Method that you want them to be able to use, that Customer shouldn't go through Checkout at all. Instead, you can build your own UI that displays existing saved PaymentMethods as options for the payment, and then you can proceed with the payment by making the API requests themselves.

#

Off-session is slightly different. Say a customer completes a Checkout Session and saves a US bank account for future payments. This means you can then create and confirm a PaymentIntent server side and pass the PaymentMethod ID for this bank account. There's no need to involve the customer at all ("bring them back on session"/have them be actively using your app)

fathom frigate
#

So off-session they would initiate a payment in my app's UI and then my server would send a payment API using the customerId saved payment method to Stripe?

wary quarry
#

No, sorry, I confused you with off session. If the customer is in your app's UI, your server would make a request to create a PaymentIntent using the PM they selected in your app's UI. Since the customer is on session, you can still have them confirm the PaymentIntent client side

fathom frigate
#

Ok, I think this is what I need to do. I am confused why this cant be done in a checkout session but thank you for your patience and help explaining it to me.