Containerize and flatten your payment processing server into microservices using GCF.
GCF-Stripeis a serverless implementation of basic Stripe requests using Google Cloud Functions as containerized microservices. This repo is designed to help those just beginning with Google's Cloud Platform to get some basic services up and running on the Cloud Function product.
Check out the folders in the
master branch where you'll find different requests ready to be dropped into your Google Cloud Functions - all packaged as
index.js files, and ready to go.
1.) Visit the Google Cloud Functions welcome page, and sign up for a free trial, or sign in to your Google Cloud account.
2.) Once logged in to your Cloud Platform Console, select the hamburger menu on the left, and enter the "Cloud Functions" management section.
3.) From here, you will create a new cloud function, ensuring to select
HTTP Trigger as the Trigger option.
Inline Editor under the Source code option, or upload your own version, using the code supplied in this repo.
5.) Ensure that you have replaced the pieces of code, where necessary, with your Stripe information - most importantly your Stripe Keys, which you can find in your Stripe Dashboard under
Dashboard > API.
6.) Once deployed, use your client to call the endpoint for your function & supply the correct parameters encoded in the
URL to interact with the Stripe API.
Happy serverless computing!
- For support and help getting your Google Cloud Functions up an running, take a look at their Quickstart page.
- For help specifically with
HTTP Triggerson your functions, check out the HTTP Tutorial.
- Be sure to check out the writing HTTP cloud functions section for help and formatting, should you have any trouble.
- Looking for more serverless repos? Check out awesome-serverless.
For specific support regarding the Stripe functionality of the repo, see the respective sections below for Stripe's
Node JS API Docs:
MIT. See the LICENSE file for more information.