#.letscode
1 messages · Page 1 of 1 (latest)
Hi there!
You can see all parameters to update a subscription here: https://stripe.com/docs/api/subscriptions/update
And no, backdate_start_date can only be set when creating the subscription.
Basically, I need to Create Subscription and give it to the User via API (link redirection). For this, First I created Session object --> session.getUrl() will redirect to payment page(subscription page)
By Webhook response, If user subscribed, Subscription Object was creating
Then I'm applying, SubscriptionScheduler for monthly recurring payments
so there is no way to create a Subscription directly for my requirement. Because if I create a Subscription, we don't have URL generation from a Subscription. So no way to user update the payment
any suggetions?
are u there?
If you create a subscription with a Checkout Session, then you cannot set or udpate backdate_start_date.
You would need to create the Subscription (or subscription schedule) manually, and then collect the payment method with the Payment Element yourself
This is covered here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
So You mean, Stripe not supports my usecase? Create subscription via API and generate URL ?
I'm sorry I don't understand your question. What is your end goal here? Create a subscription with a backdate_start_date?
If you want to create a subscription with a Checkout Session, you can! But you won't be able to set or update backdate_start_date.
If you want to create a subscription with backdate_start_date, then you need to create the Subscription (or subscription schedule) directly, which gives your more control: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
looks like use case not clear
please find below
Usecase
A User X wants to pay amount ($1000) in 4 installments, every 2 month. Sometime payments are for backdate. Means every month 8th, need to collect from the User payment method.
For this, I need to provide Subscription/Checkout URL via API, so it will be redirect. In the Subscription, I need to specify following elements
1) Auto deduct monty every month
2) Specify Interval(month), Interval Count(2) and Iterations (above case it's 4)
3) Also needs to specify backdate (may be the invoice(not stripe, our interal invoice) may generate late)
To Satisfy this, how to proceed? We are looking Via API only, not manual approach
Hey! Taking over for my colleague.
1) Auto deduct monty every month
What do you mean by this can you share a concret example ?
2) Specify Interval(month), Interval Count(2) and Iterations (above case it's 4)
this can be set in the price recurring parameters:
https://stripe.com/docs/api/prices/create#create_price-recurring
3) Also needs to specify backdate (may be the invoice(not stripe, our interal invoice) may generate late)
You can back date a susbcription following this guide:
https://stripe.com/docs/billing/subscriptions/backdating?dashboard-or-api=api
But you can't achieve this using Checkout Session.
if it's not possible by Checkout, what are the ways to provide without it manual ?
You can achieve that using the Subscription API, check the link I shred above
Greate.. once I create a Subscription, how to give that to the end user? because at the end, he needs to pay via his own payment method
I invite you to check this setp-by-setp guide:
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
thank you i'll look into it