#PyroFiire
1 messages · Page 1 of 1 (latest)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Do you have a request ID so I can see the configuration you're using?
$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
No worries! glad it's working
Not work, i don't change config, juste the interval and price
Can you be more specific? What are you trying to do?
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
You want them to pay for the next billing cycle? Including the billing cycle they already paid for?