#rangermillze_api

1 messages ¡ Page 1 of 1 (latest)

tight onyxBOT
#

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

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

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.

undone epoch
#

hi, this is the code I use to add the item:

#

$response = $stripe->subscriptions->update(
$order['current_subscription_id'],
[
'items' => [
[
'price' => $product_price_id,
'quantity' => 1,
],
],
'proration_behavior' => 'always_invoice',
'expand' => ['latest_invoice.payment_intent']
]
);

#

if i create a subscription without a trial and use this code above it works fine.

heady kiln
#

The subscription creation was created with yearly price (price_1QD4wvKnxJnfLFNQUCEaLlH6) in https://dashboard.stripe.com/test/logs/req_zxOJOa4FakO8zl, but you attempted to add new item with monthly price (price_1QD510KnxJnfLFNQ2zpytv5Q) in https://dashboard.stripe.com/test/logs/req_otapE4MiIQ8Py4

Stripe doesn't support different interval prices in a subscription. All the prices must be either monthly or yearly, not the mix of different interval

undone epoch
#

ah i see, so basically i need to force yearly to add a new product

#

thanks for your support