#mattwoberts
1 messages · Page 1 of 1 (latest)
Hi there!
Howdy!
Can you share the PaymentIntent ID (pi_xxx)?
Yeah sure it's pi_2N1v9eEHSdXPilfD1G8YBLXi
The customer has a DD setup they used for the previous month, and it failed here, we're not sure why ....
Can't find any information about it
Thanks! Give me a few minutes to look into this.
Thanks
Hi - just checking you're still there 🙂
Hey! Taking over for my colleague.
According to the error message:
There are multiple mandates associated with the PaymentMethod for this PaymentIntent. A
mandateparameter must be provided to specify which to use.
You need to specify what mandate to use when calling confirm API.
Hmm, where did you go to see that error message?
Why would there be multiple mandates associated with the PM - this is just stripe automatic billing, there is no action from us on our side?
In the response body of the confirm API call req_JMwarjJE4XGXeI
I don't see that request, searching for it brings up nothing too
Ah yes you won't see it in the dashboard, (it exceeds the retain period)
In the response of that request, you had that message body.
So this customer, they have a BACS card all setup, and on the 28th May, it should have taken a new payment automatically. Instead, it just fails (with no interaction from us or the customer as far as I know)
can you shed some light on it - it's all very weird
I'm trying to work out how there could be multiple mandates on this PM
Let me check...
So the first mandate mandate_0MoPbbEHSdXPilfD72xEWdj7 was created/accepted at 2023-03-22 11:13:23 via this request req_ipaJkDaGIYSndc using Element.
At 2023-04-06 09:15:54 +0000 a second mandate was created mandate_0Mtov8EHSdXPilfD9l0prAd4 via this request req_xex1g3rkowcmzi.
You need to keep tracking mandates and make sure to use always the latest one.
Ok thanks - are they associated with payment intents - can I see what mandates exist??
They are associated with PaymentMethods
can I see all mandates for a PM?
There is no direct API fo that
you need to listen to the mandate.updated event:
https://stripe.com/docs/api/events/types#event_types-mandate.updated
In the mandate object you have the PaymentMethod Id:
https://stripe.com/docs/api/mandates/object#mandate_object-payment_method
Right, thanks for this - the issue is we've tried to shoe-horn this into our integration based on credit card payments, and the flow is quite different isn't it