#fedoraus
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
Hi Vanya
What do you mean by "auto charge"?
Im using firebase functions to retrieve data from stripe webhook
im using checkout session completed and payment intent succeded
when the user made the payment manually, I received this data in my database, but when a month passed, the stripe automatically withdrew money, since I have a monthly subscription, but after the withdrawal, I received nothing from the stripe and as a result, the extension did not work, I I assume that another event is responsible for the automatic withdrawal of money from the account
i used google translate a little bit, because im not native speaker, sorry about that
i believe u undersood the main idea of the question
i believe x
xd
No worries, I understand. You want to know when the Subscription renews, right?
You can use customer.subscription.updated: https://stripe.com/docs/api/events/types#event_types-customer.subscription.updated
I the end of the billing period you will receive an event with the updated current_period_start and current_period_end in data.previous_attributes field:https://stripe.com/docs/api/events/object#event_object-data-previous_attributes
Will I receive data from the webhook if the stripe itself withdraws money at the end of the user's subscription?
Not sure what you mean by "stripe itself withdraws money"
This event is created when a new billing period starts and the Customer is billed for the Subscription.
but if i peek payment monthly
You can also listen to invoice.paid: https://stripe.com/docs/api/events/types#event_types-invoice.paid
Happy to help. Please, let me know if you have any other questions.
no, thanks a lot!