Hi Guys,
Our test suite requires listening for Stripe webhooks using the Stripe CLI. On the local environment I can run:-
stripe listen --forward-to http://localhost
which forwards webhooks to the local server.
I've tried a couple of approaches to this but without success.
Seems like I should create a stripe service definition using their docker container
definitions:
services:
stripe:
image: stripe/stripe-cli
environment:
STRIPE_API_KEY: $STRIPE_SECRET
STRIPE_DEVICE_NAME: 'BITBUCKET_CI'
But this gives an error:-
standard_init_linux.go:228: exec user process caused: exec format error
which maybe due to the processor type the image is compiled for. Also not sure how I would start the listener if it would run.
This is the usual command:-
docker run --rm -it stripe/stripe-cli listen \
--api-key sk_test_xxxxxxxxx
is it possible to send a command to a service?
Many Thanks for any pointers.