#travis-chase_api
1 messages ¡ Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- travis-chase_api, 5 days ago, 5 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1252708290664595456
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello
I believe you're referring to subscription schedule?
https://docs.stripe.com/billing/subscriptions/subscription-schedules
I am trying that but I do not want to generate an invoice till next year
If you want the subscription to be active without a payment up front then you'd need to use a trial
I created this subscription in my test env with the Dashboard: https://dashboard.stripe.com/test/customers/cus_QJl3evuYa5Klhx
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I used the Bill yearly starting for one year into the future
that's a customer object.. Subscriptions start with sub_xx prefix
the subscription is active now, with no trial, and doesn't bill for a year
sorry, copied wrong URL: https://dashboard.stripe.com/test/subscriptions/sub_1PT7XvG6SOg4bQjgopGQvXFP
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I tried this but it still generated and invoice
Stripe::SubscriptionSchedule.create({
customer: customer,
start_date: 'now',
end_behavior: 'release',
phases: [
{
items: [{price: 'WA-FA-BUNDLE-BACKER', quantity: 5}],
end_date: DateTime.now.next_year.to_time.to_i
}
]
})
if ti set start_date into the future it creates a schedule instead of an active subscription
Just to make sure I understand this correctly, you want to start a subscription for let's say $100 per year today June 18th, 2024 but don't want to start billing it till June 18th, 2025?
In this case are you offering the first year for free?
correct but I want the subscription to be "active" not "trialing"
Ah I see what you mean. I think you'd need to disable proration in this case...
Try
Stripe::Subscriptions.create({
billing_cycle_anchor: 1750222800,
customer: "cus_xxx",
items: [{
price:"price_xxx",
quantity:1
}],
proration_behavior: "none"
})