#alex.esch

1 messages · Page 1 of 1 (latest)

fathom hearthBOT
#

Hello! We'll be with you shortly. 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.

hushed mortar
#

Sure, how can I help?

young horizon
#

Hello

#

well,we have a pretty complicated flow right now

#

let me explain

#

right now, we are selling a bundle which one includes a subscription, by using paymentintent with a fixed price

#

the subscription is being created and activate, couple of weeks AFTER the user bundle purchase

#

so everything is working fine

#

but in stripe, we see single payment with only some metadata

#

now, we would like to split this

#

as far i have understood

#

instead of creating a new payment intent
we can create an invoice which one will contain invoice items

  1. bundle itself
  2. subscription itself

so at this way, we will be able to see in stats, our monthly MRR

#

but, right now, i'm trying to create this kind of invoice with 2 items

#

but, i'm getting an error

#

The price specified is set to type=recurring but this field only accepts prices with `type=one_time

#

the second item is of type PLAN, not price

hushed mortar
young horizon
#

just a sec

#

so our goal, is to create an invoice with 2 items

  1. simple product
  2. subscription

the subscription will be created and right after that, paused (canceled)

it will be reactivate after some weeks

hushed mortar
#

Yup, you can only create invoice item with price type=one_time

#

No I don't think you can use Invoicing APIs to create subscriptions.

#

You should use Subscriptions or Checkout Sessions API instead

young horizon
#

we can't use it as we have our own complex flow based on elements

#

ok, i'll check for any other solution

#

thank you