Home

Awesome

<p align="center"> <strong>Please Note:</strong></br> <i>This repository is no longer maintained and much of the APIs used have been changed or updated</i> </p>

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.

<h6>Deploying...</h6>

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 specific support regarding the Stripe functionality of the repo, see the respective sections below for Stripe's Node JS API Docs:

<h5>Creating a Customer</h5>

<h5>Initiating a Charge</h5>

<h5>Subscribe Customer to Payment Plan</h5>

<h5>UNsubscribe Customer from Payment Plan</h5>

<h5>Adding a Source</h5>

<h5>Delete a Source</h5>

Author

@rldaulton

License

MIT. See the LICENSE file for more information.