Stripe Integration Example
This example for Stripe integration using AWS Lambda and API Gateway.
Use Cases
- Notified about events that happen in a Stripe account.
Setup
Install npm packages
$ npm install
Edit config overrides for production deployment
$ vi config/local.yaml
stripe: test_sk: 'Stripe_Test_Secret_Key_here' live_sk: 'Stripe_Live_Secret_Key_here'
Deploy!
$ serverless deploy -v
or production
$ serverless deploy -v --stage live
Serverless: Packaging service...Serverless: Uploading CloudFormation file to S3...Serverless: Uploading service .zip file to S3 (2.15 MB)...Serverless: Updating Stack...Serverless: Checking Stack update progress........Serverless: Stack update finished...Serverless: Removing old service versions...Service Informationservice: aws-node-stripe-integrationstage: developmentregion: us-east-1api keys: Noneendpoints: POST - https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/test/stripe/incomingfunctions: incoming: aws-node-stripe-integration-test-incomingStack OutputsServiceEndpoint: https://xxxxxxxxx.execute-api.us-east-1.amazonaws.com/testServerlessDeploymentBucketName: aws-node-stripe-integration-serverlessdeploymentbuck-xxxxxxxxxxxxIncomingLambdaFunctionQualifiedArn: arn:aws:lambda:us-east-1:000000000000:function:aws-node-stripe-integration-test-incoming:20