I am trying to understand the stripe events but am confused/unsure if I have understood it correctly. I've italics my questions. My customer cycle is below.
#1
Using checkout.session.completed
event to determine if they have subscribed. Then use the subscription
id to obtain information about the subscription. This this the correct event to use?
#2a and #2b
I do not know what event to use here. There are so many events I get like charge.succeeded
, payment_intent.succeeded
, invoice.finalized
, invoice.paid
etc. Which do I use to determine if the customer has paid or not paid and extend or end their subscription?
#3a and #3b
Assuming I use invoice.payment_succeeded
for #3a. Which events do I use to determine the invoice information?
#4a and #4b
This is things I do on my website from the information I obtained from Stripe. How I can convert Stripe's timezone in Sydney/Australia timezones.