#CodyL-mandate
1 messages · Page 1 of 1 (latest)
Hi there! You locate mandates based on either charges or SetupIntents.
What type of paymentmethod are you talking about specifically? And how are you collecting the mandate details?
ACH Debit
So I can see setting the mandate on setupIntent, but how can we retreive it after the fact
additionallly ACH Debit says that the mandate will be invalidated after a dispute so how would we know that without being able to see the mandate on the Payment Method
or do we have store the mandate in the db on our side? Seems like it should be retreivable by customer
The mandate will be on the SetupIntent: https://stripe.com/docs/api/setup_intents/object#setup_intent_object-mandate
Yes it is recommended that you store it yourself, depending on how you want to surface it to the customer if need be.
Definitly seem to be going away from having things stored on the customer
No default payment methond (there is a default source)
In terms of knowing invalidated... you would listen for mandate.updated
but no way to see if the mandate associated with the saved paymentmethond has been invlidated
by querying stripe
Sure, you can retrieve the mandate directly via https://stripe.com/docs/api/mandates/retrieve
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
but only if you know the mandate id
There is no way to see the mandate id assoicated with the payment method attached to the customer. right?
As I said, you have to retrieve the SetupIntent to grab the mandate ID. So in the case you would list SetupIntents by Customer to get to the Mandate.
I guess I thought the setup intent was no longer needed once you completed it and got the payment method attached to the customer.
Is that not the case?
Well that depends on whether you store the mandate ID on your end or not.
Seems like a bit a of a hole that we can't see the mandate id associated to the payment method attached on the account which could cause a payment to fail if it is invalidated.
You can certainly make the argument that you would like the mandate ID to be associated directly to the PaymentMethod object, but that simply wasn't how this was built. You can do exactly what you are saying.
Yeah I'm starting to think I might put this on the back burner for 6 months or so. This all feels a bit under baked. I know the ACH Debit portion with the mandates was just released.
And just continue to use the sources api
Anyway thanks for your help.
Happy to give my feedback as a consumer of the API with 50K ach debits per year if anyone is interested.
We certainly would be interested and I appreciate the feedback. If you are willing, I'd recommend writing into our Support team and they would happily pass your feedback to our ACH product team and also keep you in the loop if your feedback is actioned.