#Mohana-subscriptions
1 messages · Page 1 of 1 (latest)
Hi! Do you mean updating an existing subscription, or directly creating a new subscription with Checkout Session?
directly creating a new one during checkout session
sorry for the late reply
so, i am creating a new subscription by creating a checkout session. I want the subscription's billing cycle to be anchored at 1st of every month.
Got it! Unfortunatly we don't have that option when using Checkout Session. But you have a few options:
- Create the subscription manually (without a Checkout Session)
- Or create the subsiption with Checkout Session, and then update the subscription to set the
billing_cycle_anchorhttps://stripe.com/docs/api/subscriptions/update#update_subscription-billing_cycle_anchor - Or create the subscription with Checkout Session, but add a free trial until the end of the month with https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_end and you could charge the customer for the usage in the first period by adding a few
line_itemsto the Checkout Session
hmmm, the second option does not accept a specific billing cycle anchor time, it either supports now or unchanged
when i create the subscription manually, is it possible to create a payment link and redirect the customer to that link ?
oh i can do that via the invoice link right ?
when i create the subscription manually, is it possible to create a payment link and redirect the customer to that link ?
If you create the subscription manually, then you'll need to manually collect the payment information using the PaymentIntent of the first invoice of the subscription and the Payment Element. You can learn more about this here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
This requires some work, so I would recommend the thirs option I shared (Checkout Session with a free trial)
if the user subscribes to a product at say 15th of the month, if i set the trial end to end of month, wont they be seeing that in the checkout session page ?
i believe it would display "Trial till 30th of April". With that if i charge the user for that period, wouldn't they be challenging me as to why the charge was done ?
So I just tried it, and it looks like this: