This example for Stripe integration using AWS Lambda and API Gateway.
- Notified about events that happen in a Stripe account.
$ npm installEdit the environment block in serverless.yml with your Stripe secret keys:
provider:
environment:
STRIPE_TEST_SECRET_KEY: 'Stripe_Test_Secret_Key_here'
STRIPE_LIVE_SECRET_KEY: 'Stripe_Live_Secret_Key_here'$ serverless deployor production
$ serverless deploy --stage live
Deploying "aws-node-stripe-integration" to stage "test" (us-east-1)
✔ Service deployed to stack aws-node-stripe-integration-test (42s)
endpoint: POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/test/stripe/incoming
functions:
incoming: aws-node-stripe-integration-test-incoming (1.2 kB)