#cyril.lepagnot

1 messages Β· Page 1 of 1 (latest)

prisma pebbleBOT
quartz oriole
#

Hey again

#

If you wanted the payment to take place in the future then you would put the Subscription on trial

#

But really there should be an easier way to do this....

#

Like I'm still confused why the Dashboard settings don't work here.

#

We don't know much about the Dashboard, as we just focus on the API.

fickle wolf
#

πŸ˜„

quartz oriole
#

It might be worth writing into our Support team and asking why the Dashboard setting is unavailable but you can set bank_transfer directly as a Payment Method Type via the API....

fickle wolf
#

Yes, its disturbing, because the Dashboard allows to setup a bank_transfer, but not the API

quartz oriole
#

Oh wait wait.

#

I think I might know what is going on in that case.

fickle wolf
#

To many suspens πŸ˜„

quartz oriole
#

Ugh yeah nvm. I think we just haven't flipped on Dashboard support for this yet which feels wrong. I'll file feedback about that and we should get it enabled in the future.

#

But yeah for now the above recommendation is still going to be the way to accomplish this. Create a Sub where you specify Customer Balance as a Payment Method Type and put it on trial. Then attach a schedule

fickle wolf
#

When I attache a schedule to a created Subscription, the billing cycle is reset to the date of the Sched ?

quartz oriole
#

You would pass phase 0 as the current Subscription billing period (the period of the trial)

fickle wolf
#

Because I prefer to not use "trial period" or create a fake invoice.

quartz oriole
#

That's not really possible

#

When you create a Sub it will always create an Invoice

fickle wolf
#

😒

prisma pebbleBOT
fickle wolf
#

Ok, you think the behavior of the dashboard, will be available on the API, soon ?

#

πŸ˜„

#

I cheked the network call made by the dashboard

#

And the payment_settings are passed to the sched on the first phase

celest schooner
#

Hi taking over for bismarck. Give me a moment to catch up

fickle wolf
#

πŸ‘

celest schooner
#

Sorry what's the issue currently? You can pass payment_settings via the api as well

#

Oh maybe I'm wrong. One sec

#

Ah yeah doesn't look like it's currently possible. I can't provide an eta on when this would be added via the api though. For now, it'll be best to just create the schedule from a subscription to work around this: https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-from_subscription

fickle wolf
#

Ok, it's the tweak that @quartz oriole told to me.

But if I do this, the current_period_start will be today and not the day i want to start the schedule.

#

Then @quartz oriole told me to use trial_period_days to have the invoice sent at a future date :/

celest schooner
#

Yeah setting the trial period will determine the billing cycle anchor, which I assume is what you're after, right?

fickle wolf
#

But I do not wants to seed "trial period" on the invoice.

#

Or Can I use the billing_cycle_anchor param instead ?

celest schooner
fickle wolf
#

Ok

#

So billing_cycle_anchor = the timestamp of the first bill +
proration_behavior = none

#

?

celest schooner
#

Yeah

#

billing_cycle_anchor determines what day of the month the subscription will be billed on

fickle wolf
#

Ok 🀞 I'll try this couple of params

#

Thanks.