#JonnyDenGro
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
yes you can listen to this event https://stripe.com/docs/api/events/types?lang=node#event_types-mandate.updated
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thanks Tarzan, I am already listening to this event, I'mjust wondering how to trigger the event?
oh sorry, I'm not sure whether there is a Stripe CLI fixture that might help
let me check for you
Thanks
I'm honestly not sure whether that event gets triggered when you update the mandate only or whether Stripe would update the mandate if the customer for example would revoke it from their bank
still checking
The intention is to simulate a BACS payment failure, yes?
AFAIK you can't update mandate statuses manually. You'd just need to create and use a new PM object using test data from here: https://stripe.com/docs/payments/bacs-debit/accept-a-payment?platform=checkout#testing
108800 93333335
The payment fails after three minutes with a debit_not_authorized failure code and the PaymentIntent transitions from processing to requires_payment_method. The Mandate becomes inactive and the PaymentMethod can not be used again.
Should do it!
Okay thanks guys will give that a try
let us know if you need any more help