#italo83_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1217766658203062302
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
// Set your secret key. Remember to switch to your live secret key in production.
// See your keys here: https://dashboard.stripe.com/apikeys
$stripe = new \Stripe\StripeClient('sk_test_***');
$stripe->billingPortal->sessions->create([
'customer' => '{{CUSTOMER_ID}}',
'return_url' => 'https://example.com/account/overview',
'flow_data' => ['type' => 'payment_method_update'],
]);
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
i cannot find the flow_data type for customer update
YOu can prefil the customer email:
https://docs.stripe.com/customer-management/activate-no-code-customer-portal#url-parameters
we already done it.. passing directly the customer id
but the problem is that does not exist a flow for customer_data_update
as per payment update we need to redirect the customer to this portal section
the related path on portal is /customer/update
There is no flow data when creating a billing protal for customer update
https://docs.stripe.com/api/customer_portal/sessions/create#create_portal_session-flow_data-type
Here are all the availble deeplinks:
https://docs.stripe.com/customer-management/portal-deep-links
so it's not possible to create a custom deep link to /customer/update?
No.
we have solved generating a new session url with /customer/update path appended to the end and provided in after_completion redirect uri.
Stripe should add this flow type
Yes you can just append the url, but it can't provide a deep update action withing the action for now.
right... maybe settings a manual redirect intercepting a query string after the first redirect is a better solution