#adeel_api

1 messages ¡ Page 1 of 1 (latest)

toxic coveBOT
#

👋 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/1264897339202605100

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

north birch
#

hi! well price_1PbcXHI0DGZ9CkPIfPw2aA3J is a one-time $100 item, not a subscription-related item, so that seems expected to me.

#

if you want to "preview of subscription before we actually purchase it on our devices" you should pass the actual parameters you'll pass to creating the Subscription(i.e. your recurring Price object ID).

ember raft
#

return this.stripeClient.invoices.retrieveUpcoming({
subscription_items: [{
price: priceId
}],
discounts: couponCodes.map((e) => ({ coupon: e })),

})
toxic coveBOT
ember raft
#

my question will be how are our other flows working like coupons with forever and one are working

#

even on one time calculation

north birch
#

because ``duration=repeating` coupons only work with recurring Prices.

hexed fulcrum