#vilesa - prevent duplicate payment methods
1 messages · Page 1 of 1 (latest)
Unfortunately there isn't a setting for this. To de-duplicate payments like this, you will probably want to check the fingerprints and make a delete call on one of the PaymentMethods yourself
Which could probably be done here in something like the payment_intent.succeeded event
That event would still be triggered on the payment because the PM is still getting attached. That event actually may be better to listen to than the payment succeeding event
do you confirm 100% this event is triggered? I had understood it was not (for generated_sepa_debit from bancontact)
If it gets attached to the Customer it should be called at some point but I have not had the chance to test to 100% confirm. If you test this in test mode you will see the same event behavior so you will know what you can react to
I confirm this event is not triggered: payment_method.attached
Good to know, I did not realize that that did not happen with some of our payment methods in this scenario
Thanks for reporting back, I will make sure to remember that
np, thanks