#jhill9693
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- jhill9693, 25 minutes ago, 11 messages
Hello! There is an API endpoint to retrieve a mandate here: https://stripe.com/docs/api/mandates/retrieve
Right, I know, but how do I get the correct mandate ID to start with, if I only have a payment method ID?
You need to get it from the Setup Intent: https://stripe.com/docs/api/setup_intents/object#setup_intent_object-mandate
OK, how do I know which setup intent is the right one, if there are multiple setup intents linked to the same payment method?
That depends on your flow and how your integration works, and what you consider the "right" one.
What's your ultimate goal? What are you trying to accomplish?
I'm trying to make sure all payment methods have active mandates, and if a mandate is revoked, to re-confirm it. My last thread from earlier this morning answered how to do the re-confirmation, but that then begs the question, which setup intent is the current one?
Should be the newest one with a status of succeeded.
You can list Setup Intents by payment_method to get the newest succeeded one: https://stripe.com/docs/api/setup_intents/list
OK thanks
Happy to help!