kiteco-public/kite-go/cmds/license-node
2021-12-31 23:54:19 -08:00
..
templates Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
basic-checkout.go Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
bindata.go Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
main.go Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
readme.md Contents — happy new year everyone 2021-12-31 23:54:19 -08:00

Testing with Stripe CLI

1. Configure Strip CLI

Do step 1 and 2 from the page https://stripe.com/docs/stripe-cli for a quick intro on how to setup stripe CLI

2. Listen events with Stripe CLI

stripe listen --forward-to localhost:9090/api/account/stripe-webhook That connects Stripe to the stripe test server instance. It prints a line with the webhook signing secret.

3. Run Stripe Test

Execute the license-node to use the signing key of the stripe-cli.

export STRIPE_WEBHOOK_SECRET="<signing key printed by stripe-cli>"
go build .
./license-node

Trigger event with the web interface

Visit http://localhost:9090 and do actions, that should trigger webhook requests. You can use the card 4242 4242 4242 4242 to simulate payments.