#arpu_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1420543106192773260
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
this is our price for the product for usage_millisenconds but what we need would ADD usage_interactions meter
One product can have multiple Price objects. Each Price object can have only one meter
if you are planning to use stripe invoices, it is better to use one meter per product as there is no way to display the descreption of the price
hm ok than the user needs to subscribe to two products ( with our api)
need to look if this is possible do you know?
we cannot use only one meter
oh @chrome merlin this works ?
One subscription can have multiple prices from different products. The usage submission is based on the meters.
So yes, it will work for prices on different meters from different products
i created this
two prices ( becasue it shows default i was thinking only one is used)
You can use both in a single subscription
No problem! Happy to help ๐
i use rails/ruby and see what i do now is
customer: customer.id,
items: [{
price: price_id
}],
payment_behavior: 'default_incomplete',
payment_settings: {
save_default_payment_method: 'on_subscription', payment_method_types: ['card']
},
expand: ['latest_invoice']
})````
This looks right to me.
yes but how can i add the multible price ids ?
ok found something https://docs.stripe.com/billing/subscriptions/quantities
items: [{price: price_id}, {price: price_id2}], this should work
Yes! Items is an array, so you can add multiple prices to it