#Little_seven
1 messages ยท Page 1 of 1 (latest)
Hi! Let me help you with this.
okay, thank you!
currently with my testing,
when I add an item in the current subscription.
it prorates the bill but added under the next billing cycle invoice.
e.g.
updates the main subscription - adding the addOn addOn-50
but this one prorates the payment to the next incoming invoice.
calculation of the next invoice.
$25 + ($247 + $50) = $322
where:
$25 is the prorated of the fc-team-limit-1 for the current month
$247 is the next month plan subscription
$50 is the normal price of fc-team-limit-1 for the next month
I wanted to make the $25 automatically paid by customer first. is there a way?
Use the proration_behaviour: always_invoice when updating the subscription with the new item: https://stripe.com/docs/api/subscriptions/update#update_subscription-proration_behavior
okay, will test this one ๐
thank you!
Happy to help. Let me know if you have any other questions.
I have this response.
when trying to update subscription same time invoice it.
"You can only pass in open invoices. This invoice isn't open. thrown "
How are you updating the subscription?
๐ taking over for my colleague. Let me catch up.
Hello,
I have this code
$updateSubscription = $StripeClient->subscriptions->update(
$customerSubscribeInfo['id'],
[
'payment_behavior' => 'allow_incomplete',
'proration_behavior' => 'create_prorations',
'items' => [
[
'id' => $customerSubscribeInfo->items->data[0]->id,
'price' => $customerSubscribeInfo->items->data[0]->plan->id,
],
[
'price' => $Query_price_id
]
]
]
);
ok and what are you expecting as a behavior?
okay now,
Updated my code, there was broken code ๐
perfect ๐ let me know if you need any more help