Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dannytech/plasticjs
All-in-one payment library for Node JS
https://github.com/dannytech/plasticjs
braintree nodejs payment-library paypal plastic stripe
Last synced: 29 days ago
JSON representation
All-in-one payment library for Node JS
- Host: GitHub
- URL: https://github.com/dannytech/plasticjs
- Owner: dannytech
- License: mit
- Created: 2016-08-06T03:53:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-16T06:16:44.000Z (about 8 years ago)
- Last Synced: 2024-10-20T04:43:03.593Z (3 months ago)
- Topics: braintree, nodejs, payment-library, paypal, plastic, stripe
- Language: JavaScript
- Size: 112 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlasticJS
[![Build Status](https://travis-ci.org/dannytech/plasticjs.svg?branch=master)](https://travis-ci.org/dannytech/plasticjs)
PlasticJS is an [Express](http://expressjs.com)-compatible all-in-one payment library for NodeJS web applications.
It supports integration with many existing payment services, including Stripe, PayPal, BrainTree, and more to come## Install
```
$ npm install plasticjs
```## Usage
#### Configuring Providers
By default, PlasticJS does not come with any payment providers in its package. It is designed to allow other modules,
providers, plug into it so you can customize how your users support you. To add a provider is simple: ```npm install``` it,
then require it into Plastic:```javascript
var stripe = require("plasticjs-stripe").Provider;
plastic.use("stripe", stripe({
}));
```#### Express middleware
PlasticJS provides easy integration into [Express](http://expressjs.com) using middleware:
When you want to add a payment page:
```javascript
// Opens the payment page for the provider
app.get("/stripe", plastic.pay("stripe"));// Pays after form submission
app.post("/stripe", plastic.pay("stripe"));
```## Providers
|Provider
|--------
|[Stripe](https://github.com/dannytech/plasticjs-stripe)
|[Paypal]()
|[BrainTree]()