#ecueto-subscriptions-modeling
1 messages · Page 1 of 1 (latest)
This is possible on Stripe!
When you create a Subscription, you would just use a Price that has recurring.interval set to day, week, month or year
my Subscription is created with stripe.checkout.Session.create, it possible here implement recurring.interval?
example: stripe.checkout.Session.create(
line_items=[
{
'price': price_id,
'quantity': 1,
},
],
mode='subscription',
success_url='/success.html?session_id=123',
cancel_url='/cancel.html',
locale="es-419",
client_reference_id=1,
payment_method_types=["card"],
customer=customer_id,
recurring="day"
)
or this is in stripe.Product.create?
I would follow this quickstart. It shows how to do exactly that: https://stripe.com/docs/billing/quickstart
thank you 🙂