#travis-chase_api

1 messages ¡ Page 1 of 1 (latest)

storm portalBOT
peak needleBOT
#

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.

storm portalBOT
#

👋 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.

neat mason
plush zinc
#

I am trying that but I do not want to generate an invoice till next year

neat mason
#

If you want the subscription to be active without a payment up front then you'd need to use a trial

plush zinc
#

I used the Bill yearly starting for one year into the future

neat mason
#

that's a customer object.. Subscriptions start with sub_xx prefix

plush zinc
#

the subscription is active now, with no trial, and doesn't bill for a year

#

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

neat mason
#

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?

plush zinc
#

correct but I want the subscription to be "active" not "trialing"

neat mason
#

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"
  })
plush zinc
#

ok

#

let me try that

#

that did it! awesome! thank you so much

#

I couldn't figure out what attribute I needed to replicate