#carbonara_code

1 messages ยท Page 1 of 1 (latest)

coral pivotBOT
#

๐Ÿ‘‹ 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/1390641435623293019

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

terse hamlet
#

๐Ÿ‘‹ happy to help

#

what do you mean by it doesn't work?

stable canopy
#

It doesn't unpause the subscription

#

because after doing:

Subscription::update($idStripeSubscription, [
        'pause_collection' => ''
    ]);

I update the billing_cycle_anchor:

Subscription::update($idStripeSubscription, [
            'billing_cycle_anchor' => 'now',
            'proration_behavior' => 'none'
        ]);

but I get this error:
You cannot set billing_cycle_anchor to now while a subscription is paused. Resume the subscription first before setting billing_cycle_anchor.

terse hamlet
#

would you mind sharing the request ID where you resumed the subscription?

#

or even the subscription ID?

stable canopy
#

sure, one moment

#

sub_1RWv3wAIDeJhZYHqXOiuDhjI

#

req_A5QI31H5mqhol7

terse hamlet
#

so you just need to add a PM for that subscription

stable canopy
#

Ok, but the account has a default PM, so the problem is that the subscription doesn't have one

terse hamlet
#

you need to set the invoice_settings.default_payment_method of the customer otherwise if the PM is just attached to the customer that won't take effect

coral pivotBOT
stable canopy
#

Ok, it was probably a test created during the initial attempts at implementing subscriptions, because I just created a new one and it works as expected.