Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty screen #1

Open
chanakaDe opened this issue Jul 7, 2020 · 2 comments
Open

Empty screen #1

chanakaDe opened this issue Jul 7, 2020 · 2 comments

Comments

@chanakaDe
Copy link

I cloned and flowed all the instructions. but I can see following empty screen.

Screenshot from 2020-07-07 17-06-09

@itaibaruch
Copy link

To anyone who might face the same issue,
you have to create products (with pricing) in the strip dashboard, before stating the app.

@romain130492
Copy link

and also the product.lists has to be updated with type:service

  return Promise.all([
    stripe.products.list({  type:'service' }), // Default returns 10 products, sorted by most recent creation date
    stripe.plans.list({}), // Default returns 10 plans, sorted by most recent creation date
  ]).then(stripeData => {
    var products = formatProducts(stripeData[0].data);
    var plans = sortAndFormatPlans(stripeData[1].data);
    return attachPlansToProducts(plans, products);
  }).catch(err => {
    console.error('Error fetching Stripe products and plans: ', err);
    return [];
  });

I made a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants