#thejester12_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1276573658889850986
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
In my "normal" subscription creation code I use this: ['billing_cycle_anchor_config'] = ['day_of_month' => {{billing_cycle_day}}, 'hour' => 14];
But the billing_cycle_anchor here is very different
Ah, so you want the customer to be able to pay when they sign up, but set their billin cycle for the 1st of each month and immediately charge a proration instead of the full amount of the first month?
Sorry, didn't hear your message come in. I'm here. I'm not worried about the payment of the plan (I have an idea how to handle that) But yes, it could potentially look like this:
- Link sent to member to sign up, future date is a part of that link (say 1 week away)
- Member signs up, subscription schedule started, plan should start in 1 week
- Subscription starts after 1 week, but that isn't the billing cycle day, it would prorate that first payment until the 1st of the month
- 1st of the month the full amount charges
What I meant earlier is that I'm fine if it doesn't collect any money immediately upon signing up / starting the schedule...
My impression is that this isn't accomplishable the way I'm wishing it would be (by using the billing_cycle_anchor_config, day_of_month, etc)
But may be possible using something about phases?
You can absolutely charge for 1 week at time of signup, then charge a full amount for the next billing cycle after that week. You would just have a phase[0] with a Price that's set for recurring.interval: "day" and recurring.interval_count: 7 to represent the first phase's billing cycle.
Then you would have phase[1] defined as the regular subscription from then on