#vinz-subscription-adhocitems

1 messages · Page 1 of 1 (latest)

gray stirrupBOT
mossy tulip
#

vinz-subscription-adhocitems

lost kernel
#

yep

#

but first I want to update cart price on my front end

#

I've created poducts in my backend

mossy tulip
#

This is going to be quite complex to build unfortunately. But basically what you'd do is call the Retrieve Upcoming Invoice https://stripe.com/docs/api/invoices/upcoming and pass the recurring Price id(s) in items and the ad-hoc/one-time Price(s) in invoice_items and that will give you the result/math/calculatuon

lost kernel
#

thanks

#

I'll do it on my backend so

#

It'll be a bit more time consuming to have a DB consistent with stripe

#

but easier to code

#

There is no way to simulate a subscription ?

#

if my user is not yet a stripe customer

mossy tulip
#

There is, with the exact API I just gave you

#

that simulates the first Invoice of a new Subscription

lost kernel
#

This is cool I'll test it right now

#

si many thanks

lost kernel
#

Thanks, it work like a charm !

#

easy peasy