Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
/ GCF-Stripe Public archive

A serverless implementation of Stripe using Google Cloud Functions as containerized microservices

License

Notifications You must be signed in to change notification settings

rldaulton/GCF-Stripe

Repository files navigation

Please Note:
This repository is no longer maintained and much of the APIs used have been changed or updated

logo

Containerize and flatten your payment processing server into microservices using GCF.

License codebeat badge

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.

Getting Started

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.

gcf-menu

3.) From here, you will create a new cloud function, ensuring to select HTTP Trigger as the Trigger option.

Deploying...

4.) Select 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!

Support

  • For support and help getting your Google Cloud Functions up an running, take a look at their Quickstart page.
  • For help specifically with HTTP Triggers on 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:

Creating a Customer

Initiating a Charge

Subscribe Customer to Payment Plan

UNsubscribe Customer from Payment Plan

Adding a Source

Delete a Source

Author

@rldaulton

License

MIT. See the LICENSE file for more information.

About

A serverless implementation of Stripe using Google Cloud Functions as containerized microservices

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published