#Luca
1 messages · Page 1 of 1 (latest)
Hello Luca, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• Luca, 3 days ago, 31 messages
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
request-id: req_bA6R88EZOpEYGR'
According to the requestId, you are passing feature: ""
You are not passing the correct object
yes, i know. i just needed the error for discrod. give me a second i can pass the "correct" one.
Between, why you want to use feature ?
now i want to set the email as well, so the user can not modify it.
You simply need to set the Customer Id
And if you want to prefill the email for the customer, share the link with them by adding an url parm:
https://stripe.com/docs/no-code/customer-portal#url-parameters
I set customerId, he can modify it.
here is a better features: request-id: req_vDQyW81chOMwKL'
I set customerId, he can modify it.
How he can modify it ?
You are passing customer_update not inside feature object
I invite you to double check your request body and the error message, it's quiet explicit I think
he can click on update information and the email filed is not disabled. nothing is disabled.
Ah Iss, because youa re not creating the customer portal link via the dashboard
then yes you need to use feature
But make sure to send the correct object
yes i provided my code at the top. even though i use features:
Map<String, Object> features = new HashMap<>();
Map<String, Object> customerUpdate = new HashMap<>();
customerUpdate.put("allowed_updates", Collections.singletonList("address"));
features.put("customer_update", customerUpdate);
params.put("features", features);
request-id: req_QYHIwh5lX1YE4C'
I read the docs but its not working for me. i do something wrong. i dont know for a long time now not what.
You are passing the feature on the wrong API call
You are setting the feature on this endpoint /v1/billing_portal/sessions
however you need to create a configuration first:
https://stripe.com/docs/api/customer_portal/configuration#portal_configuration_object-features