Please create a .env file at the root of the folder - The following environment variable need to be set in order to communicate with stripe This can be found in your stripe account, check the word document for more information:
API_KEY
To find out your endpoint secret, see chapter 4 in the word document - this will be required for the bank transfer checkout example
ENDPOINT_SECRET
- Run
npm installto build your application - See package.json for list of commands
- Run
npm run {{chosen example}}to start
- Run the server
- Navigate to
http://localhost:4242/create-checkout-sesion - Click on the checkout button
- See comment above the
post - create-checkout-sessionin the server for information on how to trigger a payment