#orrc
1 messages · Page 1 of 1 (latest)
Yeah AFAICT there's no mandate field on the pm_xxx object. The only way I think you can do this is via the Setup Intent that originally created the Payment Method
So, pm_xxx -> setup_intent -> mandate
Oh, I don't think that's available for non-card PMs: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-generated_from-setup_attempt
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see it on a sepa_debit PM, but it's null. Though I can see the Setup Intent on the Dashboard under that PM.
The paypal PM type doesn't have this item in the API, and doesn't show the Setup Intent on the Dashboard… but I can find it by searching for the user's email address.
So I'm still not sure how to get the Mandate programmatically.
Is this something that's known, and might be improved? 🙂
(either way, it looks like I need to make sure to handle the Mandate webhooks)
hi! I'm taking over this thread.
So I'm still not sure how to get the Mandate programmatically.
looking into this, but not sure either. In the meantime yes listening to the webhook event should work.
Thanks.
It's just kinda weird that someone can cancel their mandate, and there's no sign of this on the Dashboard, whether you look at the Customer, their events and logs, and same for the Subscription and PaymentMethod.