aitok-ai / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Bing, PaLM 2, AI model switching, message search, langchain, Plugins, Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://discord.gg/CEe6vDg9Ky
MIT License
3 stars 1 forks source link

Enhancement: [zhao.toatu.com] change the billing link #181

Closed jinzishuai closed 6 months ago

jinzishuai commented 6 months ago

Contact Details

No response

What features would you like to see added?

image

More details

we should use the direct billing page from stripe: https://buy.stripe.com/9AQ8ww96aaDZ56obIJ?locale=zh

We can also prefill the customer email (to avoid typo): see https://docs.stripe.com/payment-links/customize#customize-checkout-with-url-parameters The URL should be something like https://buy.stripe.com/9AQ8ww96aaDZ56obIJ?locale=zh&prefilled_email=jinzishuai@gmail.com

image

Which components are impacted by your request?

No response

Pictures

No response

Code of Conduct

jinzishuai commented 6 months ago

It turned out this code is implemented on the server side: api/server/routes/ask/openAI.js

https://github.com/aitok-ai/LibreChat/blob/main/api/server/routes/ask/openAI.js#L131-L136

Questions

jinzishuai commented 6 months ago

Released in https://github.com/aitok-ai/LibreChat/releases/tag/2024-04-01a