#.rjcustodio

1 messages · Page 1 of 1 (latest)

dawn tangleBOT
fallow estuary
#

We are trying to perform this and catch it in webhook

stiff sorrel
#

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

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

fallow estuary
#

ohh got it, will try this thank you

fallow estuary
#

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.

stiff sorrel
#

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

fallow estuary
#

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.