{"id":17447613,"url":"https://github.com/dannytech/plasticjs","last_synced_at":"2025-03-28T03:42:48.124Z","repository":{"id":119075536,"uuid":"65063894","full_name":"dannytech/plasticjs","owner":"dannytech","description":"All-in-one payment library for Node JS","archived":false,"fork":false,"pushed_at":"2016-12-16T06:16:44.000Z","size":115,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T04:45:42.521Z","etag":null,"topics":["braintree","nodejs","payment-library","paypal","plastic","stripe"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dannytech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-06T03:53:46.000Z","updated_at":"2018-02-17T16:36:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e433b4e-9395-4b8d-978b-da1edfe34a9d","html_url":"https://github.com/dannytech/plasticjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannytech%2Fplasticjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannytech%2Fplasticjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannytech%2Fplasticjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dannytech%2Fplasticjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dannytech","download_url":"https://codeload.github.com/dannytech/plasticjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245966929,"owners_count":20701759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["braintree","nodejs","payment-library","paypal","plastic","stripe"],"created_at":"2024-10-17T19:42:28.598Z","updated_at":"2025-03-28T03:42:48.096Z","avatar_url":"https://github.com/dannytech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PlasticJS\n\n[![Build Status](https://travis-ci.org/dannytech/plasticjs.svg?branch=master)](https://travis-ci.org/dannytech/plasticjs)\n\nPlasticJS is an [Express](http://expressjs.com)-compatible all-in-one payment library for NodeJS web applications.\nIt supports integration with many existing payment services, including Stripe, PayPal, BrainTree, and more to come\n\n## Install\n```\n$ npm install plasticjs\n```\n\n## Usage\n\n#### Configuring Providers\n\nBy default, PlasticJS does not come with any payment providers in its package. It is designed to allow other modules,\nproviders, plug into it so you can customize how your users support you. To add a provider is simple: ```npm install``` it,\nthen require it into Plastic:\n\n```javascript\nvar stripe = require(\"plasticjs-stripe\").Provider;\nplastic.use(\"stripe\", stripe({\n    \n}));\n```\n\n#### Express middleware\n\nPlasticJS provides easy integration into [Express](http://expressjs.com) using middleware:\n\nWhen you want to add a payment page:\n\n```javascript\n// Opens the payment page for the provider\napp.get(\"/stripe\", plastic.pay(\"stripe\"));\n\n// Pays after form submission\napp.post(\"/stripe\", plastic.pay(\"stripe\"));\n```\n\n## Providers\n\n|Provider\n|--------\n|[Stripe](https://github.com/dannytech/plasticjs-stripe)\n|[Paypal]()\n|[BrainTree]()","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannytech%2Fplasticjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdannytech%2Fplasticjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdannytech%2Fplasticjs/lists"}