saleor / saleor-storefront

A GraphQL-powered, NextJs-based, PWA storefront for Saleor. IMPORTANT: This project is [DEPRECATED] in favor of saleor/react-storefront soon to become our default demo and storefront starter pack.
https://demo.saleor.io/
BSD 3-Clause "New" or "Revised" License
768 stars 674 forks source link

Can't enable Stripe Integration #841

Closed nalimhahs closed 4 years ago

nalimhahs commented 4 years ago

I would like to know how to enable the stripe payment gateway in the storefront. I can see almost everything is implemented but can't seem to figure out how to enable it. I have enabled the toggle in the dashboard.

krzysztofwolski commented 4 years ago

Can't reproduce issue. Steps I've taken:

  1. Go to http://localhost:9000/dashboard/plugins/mirumee.payments.stripe/
  2. Set up keys / set as active image
  3. image
  4. Did checkout with stripe gateway, used test card from https://stripe.com/docs/testing
  5. Completed order

Ive noticed interface in dashboard does not refresh after key set up, I've notified our team about the issue.

@nalimhahs how do you run saleor? Which version of api/dashboard/storefront you have?

nalimhahs commented 4 years ago

Hi, I'm using Saleor core deployed on a server (2.10.2). As for the dashboard I've hosted it on netlify (2.10). The storefront I'm using version 2.10.0 and am running it locally. I have done some modifications to the storefront, mostly styling, and I believe I haven't touched anything related to payments. Although I've enabled both the dummy and stripe payment options on the dashboard, neither shows up in the storefront. I have tried the same the unmodified version of the storefront (2.10.4) and still nothing shows up. But if you want to check the code of the storefront, it's here https://github.com/nalimhahs/nether-storefront.

Screenshot from 2020-08-05 21-11-25 This is the dashboard showing stripe being enabled.

Screenshot from 2020-08-05 21-11-41 This explains my problem. Both dummy and stripe don't show up here.

Do let me know if you need any additional logs.

nalimhahs commented 4 years ago

Hey @krzysztofwolski, I figured out the issue. I was digging through the server logs and found an ImproperlyConfigured error being thrown by the braintree plugin, which was activated by default but not configured with the api keys. This casued the query which fetches all the payment gateways to crash resulting in none being shown at all. So for anyone facing this issue just check if any unconfigured plugins are enabled. I'm not sure if this is a bug or not but if it is I hope you do the needful. Thanks.