#DopeScott-update-subscription

1 messages · Page 1 of 1 (latest)

grim ridge
grim ridge
#

Apologies for the delay on this. Still looking in to this question.

fresh fjord
#
    'cancel_at_period_end' => false,
    'proration_behavior' => 'none',
    'billing_cycle_anchor' => 'unchanged',
    'items' => [
        [
            'id' => $subscription->items->data[0]->id,
            'price' => 'plan id',
        ],
    ],
]);``` I've found this, but I'm not sure price implies plan change, right?
grim ridge
#

I think you can just use the new plan ID there

#

Have you tried making that call but with using the Plan ID?

#

In price?

fresh fjord
#

Just found this, but, i'll try right now.

frozen girder
#

@fresh fjord let me know if you have more qs

fresh fjord
#

Yeah, looking into it.

#

I just need to get client_secret from it, haven't got it right yet.

frozen girder
#

you won't get a PaymentIntent client_secret on just a subscription upgrade/downgrade right? there's no immediate payment, the payment happens on the next billing cycle (if I understood the above correctly)

fresh fjord
#

Oh, I'd like to bill after the upgrade.

#

Instantly*

frozen girder
#

then you want a different parameter

#

you want proration_behavior: always_invoice