DEV Community

Discussion on: 🌟Open-source SaaS Starter: React + Firebase + Stripe + i18n

Collapse
 
matek075 profile image
Matek

Any advice on how to deal with such a case ->
I have pricing on the landing page. The user clicks on the offer and purchase plan, and then I want to create a user account in Firebase.

Collapse
 
chaoming profile image
Chaoming Li

If I understand your scenario correctly, this would be the pricing page (website) -> the sign-up form (web app). The system has the route for the sign-up page so you can always link to it.

Collapse
 
matek075 profile image
Matek • Edited

Just want to give possibility to buy subscription without having account.
So the flow will be following->
User buys subscription then system creates account for user.

Thread Thread
 
chaoming profile image
Chaoming Li

Using the Stripe data to create accounts?

Thread Thread
 
matek075 profile image
Matek

Create account in firebase. We can use the same email as for payments details

Thread Thread
 
chaoming profile image
Chaoming Li

That is a great idea. I have a Hugo theme (github.com/chaoming/hugo-saasify-t...) which could be the starting point of the process. Thank you for the idea!

Don't hesitate to contribute code if you like.

Thread Thread
 
matek075 profile image
Matek

Sure thank You

Thread Thread
 
matek075 profile image
Matek

I'm trying to create subscription and I'm getting

CreatePlan.tsx:41
POST http://localhost:5555/my-app-name/us-central1/createSubscription net::ERR_CONNECTION_REFUSED

Thread Thread
 
matek075 profile image
Matek

Looks like ports are wrong?
Image description

Thread Thread
 
chaoming profile image
Chaoming Li

Looks like your Cloud Functions are on port 5001. Make sure you configure it the same port in the config.json (docs.fireact.dev/core/getting-star...)