teamtnt / php-stripe-webhook-tester

A PHP package for testing Stripe Webhooks localy
MIT License
97 stars 24 forks source link

Which ID should I save in the DB so I can compare and write it off later? #15

Open tiagocaus opened 6 months ago

tiagocaus commented 6 months ago

I'm creating a microsaas, and I would really like to use stripe, as it is accepted in all countries.

My problem is understanding which ID to save in the DB so that after it is paid, the webhook receives the IDs and thus compares them with the DB and thus cancels them.

This is because I intend to use a card and "Brazil Boleto" which is a payment method where the webhook will only receive data within 24 to 48 hours.

Could I have your help?