#letscode
1 messages · Page 1 of 1 (latest)
👋 happy to help
Please
implemented Scheduled Subscription with 3 installments
handling payments details via webhook. till now handled usin checkout.session.completed
trying to look whether we provide this kind of info, I'm pretty sure we don't. but I'll double check
but session object don;t information about installment details like Installment number and closing of schedule subscription
ohhhh
there is no installment number info there
you have a couple of ways to handle this
either you can store the installment number as a metadata on the subscription, and update it after each installment
or you can calculate it based on the start date of the subscription and the period_start of the invoice