React-storefront & checkout integration #209
wileyknight
started this conversation in
General
Replies: 1 comment
-
Checkout integration is no longer needed. It's been applied to the latest release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For those interested in the checkout integration. Here are the steps you'll need to get this working. Please add to this thread if I've missed something.
Saleor Checkout integration #172
NEXT_PUBLIC_VERCEL_URL=http://localhost:3000
pnpm i
from saleor-checkout-main to install."dev": "craco start",
"dev": "npx next dev -p 5000",
I haven't looked in depth at the variables but these are referenced in saleor-checkout-main\apps\checkout\src\lib\utils\environment.ts
7. From saleor-checkout-main run:
pnpm run dev
Making the modifications to the storefront passes along a token in the URL and changes the checkout link to the external checkout service. You'll also want to add that environment variable to tell storefront where the external checkout is running.
Saleor-checkout, as of right now, is it's own separate checkout service running independently from the storefront. I don't know if there are any plans to fully integrate the checkout or not and it appears to only have 2 providers at this time. Mollie and Adyen. I haven't seen Stripe.
Running PORT:8001 in front of the checkout was giving me an invalid command so I got rid of it. The checkout then defaults to port 3000 which conflicts with the checkout-app. Since I have no idea how to use the checkout-app part of this project, I moved it to port 5000 to get it out of the way. I created the .env file and filled in the obvious information.
You'll need to run this project along side of the locally running saleor backend, and storefront. The dashboard is optional.
Beta Was this translation helpful? Give feedback.
All reactions