#Andreas

1 messages ยท Page 1 of 1 (latest)

lavish prismBOT
chrome moth
#

Importing my other statement to this thread:

Basically what I am trying to achieve is a yearly subscription of a base fee, and then a monthly billing based on usage with a single subscription so the customer doesn't need to go through the checkout flow twice. Any guidance would be greatly appreciated ๐Ÿ™‚

#

Given the following (below) request and error, how would we achieve a yearly subscription with usage billed monthly, without taking the user through multiple checkout flows?

This is a yearly price for $999.00 (Standard Pricing) and then a monthly Graduated Pricing based on usage.

The only other option we've managed to figure out is a Graduated Pricing model where we include the $999.00 as a flat fee, but then the usage would still be billed yearly as I understand it.

Input:

    {
     "mode": "subscription",
     "line_items": {
      "0": {
       "quantity": "1",
       "price": "price_1MtUWzG0n9BygJW2UTdqi3E7"
      },
      "1": {
       "price": "price_1MtUXpG0n9BygJW2ugPXROXo"
      }
     },
     "cancel_url": "https://pricing-demo.andreas.dev.lootlocker.io/cancel.html",
     "success_url": "https://pricing-demo.andreas.dev.lootlocker.io/success.html?session_id={CHECKOUT_SESSION_ID}"
    }

Response:

{
 "error": {
  "message": "Checkout does not support multiple prices with different billing intervals.",
  "request_log_url": "https://dashboard.stripe.com/test/logs/req_HE91kpFvrlQf4I?t=1680694611",
  "type": "invalid_request_error"
 }
}
stray estuary
#

Hi there

#

Reading

#

Yep so this is tough to do without some manual work

#

What you mostly want is to add a one-time item to the Checkout for the year fee

#

Then what you could do is immediately afterward you either set up a separate Subscritpion for that Customer with a trial until the following year and then the same yearly fee

chrome moth
#

Right, that makes sense. And then once yearly add that myself?

stray estuary
#

Or you use a Subscription Schedule to have it programmatically add that one-time item each year

chrome moth
#

Great! Thanks for the pointers. I'll dive in to the docs again ๐Ÿ™‚