Giter VIP home page Giter VIP logo

gcf-stripe's Introduction

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.

gcf-stripe's People

Contributors

rldaulton avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.