#MichaelC
1 messages · Page 1 of 1 (latest)
hi, you can just ask your question
hi Karlleko,
I asked a question about a week ago, but i think it got lost.
I have a client who uses subscriptions starting on a specific day of the year (1st of February).
How can i configure the billing cycle anchor and start date so the new user is billed immediately for a prorated amount (eg; signing up today, they would pay $18, then on the first if feb, get billed for a full year, $100).
setting billing_cycle_anchor when creating the subscription should do that by default https://stripe.com/docs/billing/subscriptions/billing-cycle#new-subscriptions
Does that get sent though createCheckOut?
you can't do this when using Checkout unfortunately.
so what is the best approach?
if you create the subscription manually through (https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements) then it's possible and you just pass billing_cycle_anchor when calling the Subscription Create API.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
hi Tarzan
The idea is to have new users subscribe automatically.
can this be done before createCheckoutSession?
as my colleague explained, you can't create a new Subscription anchored in the future with Checkout Sessions
So, this won't be built into the firebase-payments-extension?
Is there a way then to push the manually created subscription to the firestore user collection?
no not really
not even with webhooks?
I think you can manually create subscriptions in the firebase-payments-extension
let me double check
you can, and i do already for another client. Without a billing anchor though.
then you can do the same with the billing anchor
I think what I have to do is generate the subscription, with billing_cycle_anchor and the customer pays the generated invoice, instead of going through the checkout...
exactly
either by using collection_method: "send_invoice" or by using the PI on the latest_invoice with Payment Elements
OK> I will go over my code and see how it goes. thanks loads. collection_method: "send_invoice" seems the appropriate way to go.
let me know if you need any more help