Skip to content

stann1/stripe-integration

Repository files navigation

stripe-tests

Instructions

  1. Create a 'secret.key' file in the root folder and copy your stripe secret key. If using webhooks, create a 'webhook.secret.key' and copy the corresponding key
  2. Setup a stripe account and edit the constants.js with the appropriate data
  3. Setup https://ngrok.com/ to have a publicly available domain for the webhook to work. Alternatively - use your own public domain.
  4. Run ngrok to listen on port 5000
  5. Replace success urls in code and webhook url in stripe dashboard (checkout settings) with the public url
  6. Run URL='your_public_url' npm start and go to your public url
  7. For test payments - use one of Stripe’s test cards with any three-digit CVC code and an expiration date that’s in the future:
  • To demo, use the U.S. test card number 4242 4242 4242 4242 or any other Stripe test card number.
  • To test 3D Secure authentication, use 4000 0000 0000 3220.

About

Sample integration with payment system Stripe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published