#jim19779
1 messages ยท Page 1 of 1 (latest)
Hello! 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.
It's automatically detected based on customer's browser/location
well I am placed in Greece and I see only English...but my browser is in English....If I change the local of my browser will the loacal of the customer portal change also?
Yeah browser settings are used primarily
But you can manually set locale when creating a session here: https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-locale
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
thx.....will look at it
I suppose in order to import stripe in a python file i must pip installed first...am I correct?
Yep
I do not understand how the code here https://stripe.com/docs/api/customer_portal/sessions/create will create a portal session.....currently I just use the customer portal link to access a portal....I do not understand where exactly the above code helps....
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
It allows you to create a portal session w/ a direct link that customers can use to access their portal
With the universal link you're using customers need to login
To manually override locale you need to use this flow instead: https://stripe.com/docs/customer-management/integrate-customer-portal
so curently I am using the no-code approach in other words...
yes
in the guide the code in server.py should accesed like this?....I am asking
<button type="submit">Manage billing</button>
</form>```
in order to create a session....
Creating a session needs to be done on the backend
That just makes a post call to a backend endpoint /server
How you call the backend is up to you
Can do it in javascript
what about the code I demonstrated? does it do what you describe...sorry I am new to python/django....
I come from PHP
currently I am trying to learn python....
Gotcha
But with python you don't need the extension .py in the action
so just provide the endpoint (ie /server if that's the name of the endpoint)
i see...
I suppose the code here in case of Django must have some differences.....