#.rjcustodio
1 messages · Page 1 of 1 (latest)
All our testing cards are here https://stripe.com/docs/testing. There is no card for just 1 first successful transaction, but you can use a successful card first (4242), then in the middle of first cycle, change it to 0341, and advance the time to the next cycle to see it's declined
ohh got it, will try this thank you
hello
can i still ask here?
please help me on this, im confused if i need to get all these events when catching this manage failed payments, all we want to do when we catch it is to update the customer status in our database that this user is having insufficient balance o have a failed payments that cause the cancellation of his/her subscription.
Sure let me see
I think you can focus on invoice.payment_failed. That indicates whenever they failed to pay your subscription
If you want to zoom in on only failed payment which triggered cancellation of subscription, then customer.subscription.deleted
will check on these. if I can connect the dots in one event like.
get the subscription id, the invoice id, payment intent id on that way i can call some API Endpoints to get these in one call and get the data that i need.