#Minami Yuya
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
๐ Hi there, Happy to help!
You can create a recurring price with an interval_count=3
https://stripe.com/docs/api/prices/create#create_price-recurring-interval_count
Then you pass that price when creating the payment link
Sorry I misunderstand your question ate te beginning
let me correct my answer
No problem.
Best regards!
In general what prodcut/prices you add, it's something transparent to PaymentLinks.
a product that is billed monthly for 3 months only
there is couples of options to do that:
1- you create a recurring 1 month price, and after 3 months you cancel the resulted subscription:
https://stripe.com/docs/api/subscriptions/cancel
2- you create a subscription_schedule with 3 phases (1 month price for each phase) with anend_behavior=cancel
https://stripe.com/docs/billing/subscriptions/subscription-schedules
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-end_behavior
3 -you create a subscription_schedule with only 1 phase (1 month price) with anend_behavior=cancelandphases.iterations=3
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases-iterations
Thank you.