#steven_api
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.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1408193609974681611
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
its not clear to me how we fetch this method via API
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
hi there. So, it looks like you're creating SetupIntents for the Customer and that's where you can find the Payment Method.
Creating/confirming a SetupIntent attaches a Payment Method to the SetupIntent, but you won't find that pm_123 id on the Customer object. invoice_settings.default_payment_method is a parameter that you'd have to set on the Customer with a Payment Method
So you can inspect the SetupIntent's payment_method parameter or else look at the incoming setup_intent.requires_action webhook events. Here is an example:
https://dashboard.stripe.com/events/evt_1Ryee3J4S0qSZVFIcTgI2UIc
is there a way to query the set up intent from the customer object via the Stripe Customer API?
Something like:
https://api.stripe.com/v1/customers/cus_SOdhBOPyKSYB2b?expand[]=setup_intents perhaps
You can list SetupIntents and filter on Customer, but I'd say that is inefficient. Listening for the webhook events would be the recommended approach
https://docs.stripe.com/api/setup_intents/list#list_setup_intents-customer
I can't do it via webhooks as this is being used to show a pending payment method via UI well after webhooks have fired (have old clients)
this is perfect, thank you!
Can you also step me through the verification flow the customer goes through after setting up a payment intent with bank transfer?
They get an email from Stripe or something to verify the cents?
Do you mean ACH Direct Debit? Bank Transfers are a push-based payment method where you provide funding instructions to the customer and they initiate a transfer from their bank. There is no verification in that flow as far as I know.
ACH Direct Debit, my bad