#ogden_67921

1 messages · Page 1 of 1 (latest)

still laurelBOT
wintry osprey
#

Good question checking in to that. Are you running in to an error where it says to manually provide a mandate?

scarlet spire
#

Error message
"message": "This PaymentIntent requires a mandate, but no existing mandate was found. Collect mandate acceptance from the customer and try again, providing acceptance data in the mandate_data parameter."
"type": "invalid_request_error"

But the customer has a valid PADs payment method with mandate set up

#

Thanks for looking

wintry osprey
#

Do you have the ID of the mandate for that mandate or payment method on hand?

scarlet spire
#

Yes

#

But can you pull that mandate ID from the API and use it automatically?

wintry osprey
#

From my memory the only way to get it programmatically is by retrieving the original PaymentIntent or SetupIntent that created the Mandate. Unfortunately there isn't a list API for it, so this usually involves listing all intents for the PaymentMethod and iterating through them to find the mandate property

#

That being said, that error message usually implies that the mandate would be used implicitly but has been invalidated