#steven_api

1 messages ¡ Page 1 of 1 (latest)

jovial raftBOT
#

👋 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.

onyx topaz
#

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
  },
wide cove
#

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

onyx topaz
#

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

wide cove
onyx topaz
#

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?

wide cove
#

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.

onyx topaz
#

ACH Direct Debit, my bad