#italo83_code

1 messages ¡ Page 1 of 1 (latest)

plucky violetBOT
#

👋 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.

dense arch
#

// 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'],
]);

#

i cannot find the flow_data type for customer update

narrow sandalBOT
iron dove
dense arch
#

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

iron dove
dense arch
#

so it's not possible to create a custom deep link to /customer/update?

iron dove
#

No.

dense arch
#

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

iron dove
#

Yes you can just append the url, but it can't provide a deep update action withing the action for now.

dense arch
#

right... maybe settings a manual redirect intercepting a query string after the first redirect is a better solution