#letscode

1 messages · Page 1 of 1 (latest)

median tulipBOT
cedar wind
#

👋 happy to help

graceful venture
#

Please

#

implemented Scheduled Subscription with 3 installments

#

handling payments details via webhook. till now handled usin checkout.session.completed

cedar wind
#

trying to look whether we provide this kind of info, I'm pretty sure we don't. but I'll double check

graceful venture
#

but session object don;t information about installment details like Installment number and closing of schedule subscription

#

ohhhh

cedar wind
#

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