A Node.js example app which uses GraphQL to place an order on Magento 2 using the Stripe payment gateway. Use this example when developing a PWA app or a headless commerce app which uses the Magento 2 GraphQL API.
You will need to have the Stripe Payments v2.6.0 magento module or newer. You can obtain the module from either of the following 2 locations:
- Clone this repository locally
- Edit the .env file and set your Magento website domain name
- Run with
node index.js
Example output: