#Little_seven

1 messages ยท Page 1 of 1 (latest)

keen valveBOT
grizzled summit
#

Hi! Let me help you with this.

bright crescent
#

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?

grizzled summit
bright crescent
#

okay, will test this one ๐Ÿ™‚

thank you!

grizzled summit
#

Happy to help. Let me know if you have any other questions.

bright crescent
#

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 "

grizzled summit
#

How are you updating the subscription?

smoky storm
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

bright crescent
#

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
]
]
]
);

smoky storm
#

ok and what are you expecting as a behavior?

bright crescent
#

okay now,
Updated my code, there was broken code ๐Ÿ™‚

smoky storm
#

perfect ๐Ÿ‘ let me know if you need any more help