#novakinn
1 messages · Page 1 of 1 (latest)
hello! how can I help?
Hello
I was wondering if i could charge a customer when he is on a trial period?
I tried to create an invoice, finalize it and pay it but it didn't charge immediately
can you elaborate more on your use case? the idea of a trial is that it's free, that's why you typically wouldn't charge the customer
The thing is that i use a trial to change the billing date
and i charge weekly
So for example if they were to subscribe today monday 12 i would set a trial period that ended until wednesday 21st
but if in the meantime they upgrade their subscription i want to charge them immediately the difference
why not just set the billing_cycle_anchor at the time of creation? https://stripe.com/docs/api/subscriptions/create#create_subscription-billing_cycle_anchor
that's an update right?
i was referring to creation
maybe i misunderstood your requirements
do you have a trial only to change the billing cycle? Or you're truly offering a trial to give your customers free usage to try it out?
Just to change my billing cycle
you are right
Does this look okay?
it looks fine from a quick glance, but run your code to try
I remember the error now
So since the creation date is Monday 12 the latest i could set the billing anchor would be Monday 19th but i need to set it for wednesday 21st
That was why i used the trial
i'm a bit confused, why weds 21st specifically?
if i wanted it to charge every weds, then i would set the anchor to 14
yes but since i charge weekly then if they already paid on monday 12 then i would not charge them again on wednesday 14
I talked to another of your colleagues the other day and he told me that they don't support that kind of schedule
so that is why i use a trial instead
it's possible to use a trial. I guess i'm just pretty confused about how you're billing. Cause if you're billing by week, then i don't really understand the need to reset the billing cycle anchor.
anyway, i think what you can try doing is to add a one time Price when creating the Subscription, that should still be chargable
okay so just to see if i understand
If my client pays on monday and i create the subscription and i change the billing cycle anchor to wednesday when will my client be charged?
assuming there's no trial period set - they pay on mon 5, then pay again on mon 12, then when you change the billing cycle anchor (assuming with proration and invoice now) - the invoice will contain :
- difference between 14 - 19 will be refunded,
- and they will pay from 14 - 21
at least that's what i remember from the top of my head, you can verify this using test clocks
How can i use test clocks?
Can i test it directly on stripe? or do i have to use my webpage?
you can take a look at this guide : https://stripe.com/docs/billing/testing/test-clocks