#feminaagravat_39821
1 messages · Page 1 of 1 (latest)
sorry for the delay, it's a bit busy on discord, I'm asking a colleague, to help
Ok
Now they are going to renew the listing with recurring. then How can i start subscription of both things with different dates in one subscription .
You can create another subscription
I would suggest to update the existing Subscription, but you want to track different dates/cycles. So the option here is to create another Subscription for the customer for the add-on
But on checkout session how can we update the existing subscription
Also i would like to do it one subscription as this is like package (membeship + add on) which customers buys.
You need to use direct Stripe APIs or Customer portal. You can't via Checkout
https://stripe.com/docs/billing/subscriptions/upgrade-downgrade
You can update the same subscription but you can't keep track of different cycles.
Via checkout can i create multiple subscription ?
Yes you can
How ?
Like creating the first one.
You created a Checkout for the first Subscription I assume. So you simply create another Checkout with the price of the add-on, so that a new Subscitption will be created to the same customer
How to pass line items ? Will it show on checkout session before customer pays for it.
Not sure I understand your last reply.
You pass the price of the addon as a price :
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-line_items-price
if i do this then user have to do multiple payment
Yes. true
I don't want my user to pay multiple times
if you want to use the customer exsiting Payment Method, then you need to use Stripe Direct APIs
And pass the Customer's PaymentMethod as a default PaymentMethod to the Subscription:
https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method
I just want they will pay total amount and in background it should create multiple subscription
You can't achieve this nativelly using Subscriptions.
You can build a workaround using manual invoices in order to charge the customer for the total invoice and create multiple subscription with 0amount (free) just for tracking
I don't think that will work . It should be auto pay from their saved card on file
Can we have proration with Scheduled subscription ?
You can do manual invoices with automatic payment collection yes
Can we have proration with Scheduled subscription ?
"For Example User "A" has purchased main membership on July 2023 and add-on was purchased on Aug 2023."
I will collect their first payment using checkout method so thei next rewnal date will be July 2024 and add-on renewal date will be Aug 2024.
Then I will create scheduled sbuscription. So on July 2024 they should be automatically charged.
But in this case What should be the phases for this case ?
So you'll keep tracking of this using one Subscription or two at the end ?
One
Becuase I have more that 10 add-on so i don't want that many subscription .
User can purchase as many add-on with main mebership.
But in this case What should be the phases for this case ?
You can't use Subscription Schedule with Checkout. You can create the Subscription from a Checkout Session, then create a Schedule from that Subscription:
https://site-admin.stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription
Yeah make sense. So you update the next phase with all Prices of the add-ons and the original Subscription price
One important question.
On Checkout Session , User will pay total amout $300.
- main mebership -> $200
- Add On -> $100.
But I want to create Subscription for main mebership only in same checkout session. Is it possible ?
And then later on using that subscription Id, I will add add-on with proration behaviour.
But I want to create Subscription for main mebership only in same checkout session. Is it possible ?
Yes, you create a non recurring price for the add-on and use it with the same Checkout
And then later on using that subscription Id, I will add add-on with proration behaviour.
So for the same Add-on, you'll need to prices one non recurring for use on the Checkout and one recurring to use later for the Subscription
yes, ok got it. Let me suggest to my client and then will implement it.