#dennis-sofort-sepadebit
1 messages · Page 1 of 1 (latest)
dennis-sofort-sepadebit
When you look at the Charge for the Sofort payment, you can check https://stripe.com/docs/api/charges/object#charge_object-payment_method_details-sofort-generated_sepa_debit to get that pm_123 for the SEPA Debit PaymentMethod that was generated
Is this also given in the webhook payload?
yes
❤️
Okay, that's easier than I thought. The recurring payment method is then no longer "Sofort" as type but Sepa Debit - correct?
So also in the interface at stripe within a customer?
yes that's why you get 2 separate pm_123 ids because they are completely different objects/payment instruments
Is then still recognizable that this is inherited out of the payment means "sofort"?
https://stripe.com/docs/api/payment_methods/object#payment_method_object-sepa_debit-generated_from on the SEPA Debit PM tells you that it came from another object in this case yes
The webhook type "payment_intent.succeeded" is just as suitable for this - right?
That one won't have the full Charge or PaymentMethod object. You can start from that Event but then you need to make extra API requests to link things together
Which one would be more suitable?
I just want to react best when the payment method is added in the frontend.
Stripe.JS
That's a good one, just you have to write more code after that Event to get to the answer really and that's what I'd recommend
Okay, I see. All right, then we build another listener in between that queries the API. Thank you.
sure!