- Working Go 1.14 and up environment set up. Setup here if you don't have one.
- Install Stripe CLI. If you need this install it from here.
- Get the source code by doing
git clone git@github.com:deekoder/stripe-payment-intents.git
- In the stripe-payment-intents directory type
go run server.go
to start the middleware.
stripe login
complete the login on your browser.stripe listen --forward-to http://localhost:3000/webhook
to observe events from the go server running at localhost:3000
- Visit http://localhost:3000. You should see this below.
- Enter various Test Cards. Test cards are available here.