Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 856 Bytes

File metadata and controls

30 lines (22 loc) · 856 Bytes

Config

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

How to use the application

  1. Run npm install to build your application
  2. See package.json for list of commands
  3. Run npm run {{chosen example}} to start

How to use the live checkout examples

  1. Run the server
  2. Navigate to http://localhost:4242/create-checkout-sesion
  3. Click on the checkout button
  4. See comment above the post - create-checkout-session in the server for information on how to trigger a payment