Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rldaulton/GCF-Stripe
A serverless implementation of Stripe using Google Cloud Functions as containerized microservices
https://github.com/rldaulton/GCF-Stripe
google-cloud-functions nodejs stripe
Last synced: about 2 months ago
JSON representation
A serverless implementation of Stripe using Google Cloud Functions as containerized microservices
- Host: GitHub
- URL: https://github.com/rldaulton/GCF-Stripe
- Owner: rldaulton
- License: mit
- Archived: true
- Created: 2017-02-24T04:44:58.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-03T16:47:46.000Z (almost 3 years ago)
- Last Synced: 2024-07-31T17:16:19.381Z (4 months ago)
- Topics: google-cloud-functions, nodejs, stripe
- Language: JavaScript
- Size: 79.1 KB
- Stars: 52
- Watchers: 3
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-functions - GCF-Stripe - A serverless implementation of Stripe using Google Cloud Functions as containerized microservices. (Cloud Functions)
- awesome-serverless - GCF-Stripe - serverless use of Stripe over Google Cloud Functions. (Payments)
README
Please Note:
This repository is no longer maintained and much of the APIs used have been changed or updated![logo](Screenshots/GCF-Stripe.png)
### Containerize and flatten your payment processing server into microservices using GCF.
[![License](https://img.shields.io/cocoapods/l/Neon.svg)](http://doge.mit-license.org)
[![codebeat badge](https://codebeat.co/badges/7bb36358-6412-4f20-9833-5e29f4bc9fd7)](https://codebeat.co/projects/github-com-rldaulton-gcf-stripe-master)`GCF-Stripe`is 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](https://cloud.google.com/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](Screenshots/gcf-menu.png)
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](https://github.com/rldaulton/GCF-Stripe/blob/36f0bef34cfd0d37676208cdec7119c3bdca244a/Charge%20Customer/index.js#L4), 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](https://github.com/rldaulton/GCF-Stripe/blob/96fc38fc0220aee9a0ecaee718a8b0edf1db18d8/Charge%20Customer/index.js#L12) 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](https://cloud.google.com/functions/docs/quickstart) page.
- For help specifically with `HTTP Triggers` on your functions, check out the [HTTP Tutorial](https://cloud.google.com/functions/docs/tutorials/http).
- Be sure to check out the [writing HTTP cloud functions](https://cloud.google.com/functions/docs/writing/http) section for help and formatting, should you have any trouble.
- Looking for more serverless repos? Check out [awesome-serverless](https://github.com/anaibol/awesome-serverless).For specific support regarding the Stripe functionality of the repo, see the respective sections below for Stripe's `Node JS` [API Docs](https://stripe.com/docs/api):
[
Creating a Customer
](https://stripe.com/docs/api/node#create_customer)[
Initiating a Charge
](https://stripe.com/docs/api/node#create_charge)[
Subscribe Customer to Payment Plan
](https://stripe.com/docs/api/node#create_subscription)[
UNsubscribe Customer from Payment Plan
](https://stripe.com/docs/api/node#cancel_subscription)[
Adding a Source
](https://stripe.com/docs/api/node#create_source)[
Delete a Source
](https://stripe.com/docs/api/node#delete_card)#### Author
[@rldaulton](https://ryandaulton.com)#### License
MIT. See the [LICENSE](https://github.com/rldaulton/GCF-Stripe/blob/master/LICENSE) file for more information.