#WpgJetsFan13-checkout-subs
1 messages · Page 1 of 1 (latest)
Hello! I believe the invoice.payment_succeeded webhook is because we still create an Invoice when the Subscription starts, it's just for $0 and therefore gets automatically paid
If you share the Invoice ID I can double check for you
I did not log it to console, oops. Maybe I can check it in my dashboard
oh, I see:
"amount_due": 0,
"amount_paid": 0,
"amount_remaining": 0,
I guess that answers my question. It just creates a $0 invoice like you said
Maybe I can ask another question while you're here: I understood that when you set a subscription to cancel_at_period_end, you can revert that up until the period end. But in my code, I set that flag, and the subscription was immediately deleted. I tried to retrieve the subscription id to change it back and stripe gave me an error saying the subscription no longer existed.
I thought it was supposed to remain in your database, and then I would receive a webhook later when the period ends
subscription.delete or something
Hmm... can you share that Subscription ID with me? It shouldn't be deleting the Subscription immediately so I'm a bit surprised
I think it might have deleted from my database. I might have to try and reproduce the error. I'll need a few minutes
Alternatively, if you can find the request ID that created the Subscription that would work too