#cyril.lepagnot
1 messages Β· Page 1 of 1 (latest)
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.
π
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....
Yes, its disturbing, because the Dashboard allows to setup a bank_transfer, but not the API
To many suspens π
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
When I attache a schedule to a created Subscription, the billing cycle is reset to the date of the Sched ?
You would pass phase 0 as the current Subscription billing period (the period of the trial)
Because I prefer to not use "trial period" or create a fake invoice.
π’
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
Hi taking over for bismarck. Give me a moment to catch up
π
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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 :/
Yeah setting the trial period will determine the billing cycle anchor, which I assume is what you're after, right?
But I do not wants to seed "trial period" on the invoice.
Or Can I use the billing_cycle_anchor param instead ?
Ok
So billing_cycle_anchor = the timestamp of the first bill +
proration_behavior = none
?