#PyroFiire

1 messages · Page 1 of 1 (latest)

thick sinewBOT
gusty remnant
pallid stag
#

Do you have a request ID so I can see the configuration you're using?

gusty remnant
#
            $portal_config = $this->stripeService->getClient()->billingPortal->configurations->create([
                'features' => [
                    'subscription_cancel' => [
                        'enabled' => true,
                        'proration_behavior' => 'none',
                        'mode' => 'at_period_end',
                    ],
                    'payment_method_update' => [
                        'enabled' => true,
                    ],
                    'subscription_update' => [
                        'enabled' => true,
                        'default_allowed_updates' => ['price'],
                        'products' => [
                            [
                                'product' => $subscription->getProducts()[0]->getStripeId(),
                                'prices' => [
                                    $price->id
                                ]
                            ]
                        ],
                        'proration_behavior' => 'none',
                    ]
                ],
                'business_profile' => [
                    'privacy_policy_url' => 'https://example.com/privacy',
                    'terms_of_service_url' => 'https://example.com/terms',
                ],
            ]);
#

i am sorry

pallid stag
#

No worries! glad it's working

gusty remnant
#

Not work, i don't change config, juste the interval and price

pallid stag
#

Can you be more specific? What are you trying to do?

gusty remnant
#

i want with api portal the customer can change the plan but i want he paid at the end for the next period. The proration_behavior => none not working always when i am in the portal. I Am debited now

pallid stag
#

You want them to pay for the next billing cycle? Including the billing cycle they already paid for?