#MichaelC

1 messages · Page 1 of 1 (latest)

trim idolBOT
shrewd osprey
#

hi, you can just ask your question

halcyon anchor
#

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).

shrewd osprey
halcyon anchor
#

Does that get sent though createCheckOut?

shrewd osprey
#

you can't do this when using Checkout unfortunately.

halcyon anchor
#

so what is the best approach?

shrewd osprey
wide flame
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

halcyon anchor
#

hi Tarzan

#

The idea is to have new users subscribe automatically.
can this be done before createCheckoutSession?

wide flame
#

as my colleague explained, you can't create a new Subscription anchored in the future with Checkout Sessions

halcyon anchor
#

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?

halcyon anchor
#

not even with webhooks?

wide flame
#

let me double check

halcyon anchor
#

you can, and i do already for another client. Without a billing anchor though.

wide flame
#

then you can do the same with the billing anchor

halcyon 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...

wide flame
#

exactly

#

either by using collection_method: "send_invoice" or by using the PI on the latest_invoice with Payment Elements

halcyon anchor
#

OK> I will go over my code and see how it goes. thanks loads. collection_method: "send_invoice" seems the appropriate way to go.

wide flame
#

let me know if you need any more help