Answer the question
In order to leave comments, you need to log in
How to distinguish a one-time payment from a recurrent one in stripe events?
Stripe sends a webhook to the store's website upon payment, cancellation, failure, and many other events. We have both recurring and one-time payments. A successful result of both types is sent with the event type invoice.payment_succeeded
, which is not very convenient, since it is not clear how to determine what kind of payment went through. Yes, in the body of the response there is data by which you can distinguish, for example subscription, but you don’t want to rely on differences, you want to rely on the event. I read about events, but as far as I understand, the same events are always sent, as a result of which it is difficult to understand what type it belongs to. How did you resolve this issue?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question