#ilyeselb

1 messages · Page 1 of 1 (latest)

potent yarrowBOT
#

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.

lavish light
#

No, you can only use one-time price when creating a new invoice.

blazing zenith
#

is there a way to pay for 2 subscription , for exemple we have one subscription for a type of product and an other for another one , i want the user when he is about to buy the first one we show him the second one with a discount and let him buy both in the same checkout

lavish light
#

Yes you can, if they are in the same billing interval (i.e., monthly)

blazing zenith
#

how ? can i do that ?

lavish light
#

Yup, have you tried?

blazing zenith
#

but how can i do that

#

?

#

im askng aha

potent yarrowBOT
digital onyx
#

it would depend exactly how you integrate currently. But for example you can pass multiple items, and discounts ,to the line_items on the Checkout API.

blazing zenith
#

can i use reccurent product price id in an invoice item

#

?

digital onyx
#

which specific API are you referring to/intending to call?

blazing zenith
#

i want to create an invoice item with diffrent recurrent product price , and then make the user pay that invoice

#

and then create the subscription that will start to be billed next month with create scheduled product

digital onyx
#

I don't really understand.

blazing zenith
#

just how to create invoice item with recurrent product id

#

in api

#

we have specifc flow too complicated to explain to you

digital onyx
#

well usually invoice items with recurring Prices are created as a result of having a Subscription that is subsribed to those Prices, it generates an Invoice each billing period with those Prices in the line items.

blazing zenith
#

i tested on the dashboard stripe direclty and succeed to add 2 subscriptions two an invoice creation items

#

so i can do that on the dahsboard but not by api ?

digital onyx
#

sorry but I can't follow at all

blazing zenith
#

let me explain

digital onyx
#

succeed to add 2 subscriptions two an invoice creation items
maybe share with me the Subscription sub_xx or Invoice in_xxx that you created in the Dashboard just now so I can understand what you did?

blazing zenith
#

i have many product (reccurent and not reccurent)

i want to make the user pay for two reccurent that can be billied diffrently(month or year) , in a one time payment (like a package) and then when the payment is done , i will create a scheduled subscription for each one of them to start be billed in specefic date

digital onyx
#

well again, you can not use a recurring Price in a one-time payment or one-time Invoice, which I think is what you're asking. And you can't have a Subscription that uses recurring Prices with different billing periods(month and year)

#

you can process a combined one-off payment and then create the Subscriptions later, sure. That's a workaround we sometimes recommend for setting up multiple subscriptions using incompatible Prices.

#

to do that you will need to either just use a raw PaymentIntent for an amount you calcuate, or create one-off Prices (equal to the cost of one billing period for example) and use those in a one-time Invoice and charge that.

#

is that what you're asking? Again it would be a lot easier if you could show me some technical details here like code or object IDs...

blazing zenith
#

thanks i understand for the the raw payment intent for an amount we calculate how to do that

digital onyx
blazing zenith
#

okay thanks

#

i have an invoice that i created ons tripe

#

stripe

#

dashbaord

#

you can check what i want

digital onyx
#

I could if you shared the ID of the Invoice object in_xxx.

blazing zenith
#

yes sure just a second please

#

im not the one in charge of that so im waiting

#

thaks

potent yarrowBOT
slim adder
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

blazing zenith
#

okay im waiting for the invoice from my colleeg

slim adder
#

take your time

blazing zenith
#

still waiting , he gave me an invoice pdf but we need the id right ?

slim adder
#

at this point, I think it's best to take this async. you can contact https://support.stripe.com/?contact=true

#

and send them the details when you get them

blazing zenith
#

okay thank you

#

if you still here

#

he is about to send me that

#

now

#

sorry for the waiting time

#

in_1OCJa1GyOBDbEOMCgzwnMj5V

#

this is the invoice

slim adder
#

no worries

#

what's the issue

blazing zenith
#

i want to create an invoice for a user so he will be able to pay for two reccurent product price in one time payment invoice , we can do that on stripe dahsboard n but not with api

#

that invoice is generated on dashboard stripe panel

#

i want to reproduce that with api

slim adder
#

the prices on the invoice you shared are not recurring prices

blazing zenith
#

but he used reccurent prices

slim adder
#

not true

blazing zenith
#

what are they then ?

#

aha

slim adder
#

this is a one-time price

#

also one-time