#_durrell
1 messages ยท Page 1 of 1 (latest)
Really depends on your integration, If you don't need them that's fine
Other might like to be made aware when setup intents are successful etc
We will be creating off session SetupIntents so we can use a PaymentMethod to automate ACH payments to external bank accounts when the Stripe::Customer is not online. Like so:
Stripe::Treasury::OutboundPayment.create(
{
financial_account: '{{FINANCIAL_ACCOUNT_ID}}',
amount: 2000,
currency: 'usd',
statement_descriptor: 'payment_1',
destination_payment_method: '{{PAYMENT_METHOD_ID}}'
},
{stripe_account: '{{CONNECTED_ACCOUNT_ID}}'},
)
It doesn't look like the PaymentMethod records contain any state to let us know whether we can continue using them off session. Might that be a reason to keep the associated SetupIntent in sync? Since the SetupIntent would let us know whether we can still use the associated PaymentMethod off session?
You need to work with support or any stripe contact you've been in touch with regarding those APIs
But in regards to the payment methods and if its been setup, that's correct that there is no indication of this on the PM itself
That sounds like it could be a valid use case, sure. Is that what you're trying to do?
Yes. That seems to be the only use case I can think of for syncing the SetupIntent records with our system. We are just trying to create Stripe::Treasury::OutboundPayment calls to automate ACH payments.
Can you think of any other reason to sync the SetupIntent records given our use case of just wanting to automate ACH payments with their associated PaymentMethods objects?
I can think of several, but that doesn't matter if your use case is covered
I'm curious, do you mind briefly stating some of the other use cases and/or linking me to any docs describing them? I'm just trying to cover any edge cases I might not have thought of.
There are no docs specifcally, but for example:
1/ Maybe the setup fails, and you want to hang onto a record of this to email the customer and have them try again later, potential recovery flow
2/ You want to have a local record of the mandate information: https://stripe.com/docs/api/setup_intents/object#setup_intent_object-mandate
3/ You want to look at whether the setup was for on or off session usage https://stripe.com/docs/api/setup_intents/object#setup_intent_object-usage
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
etc
Ok. Thank you. Really appreciate it. ๐