{"id":18030310,"url":"https://github.com/screamz/kuzzle-plugin-braintree","last_synced_at":"2025-04-04T21:16:09.545Z","repository":{"id":88071067,"uuid":"73489106","full_name":"ScreamZ/kuzzle-plugin-braintree","owner":"ScreamZ","description":"Kuzzle plugin to handle payments","archived":false,"fork":false,"pushed_at":"2016-11-16T13:08:12.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T05:43:33.367Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScreamZ.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-11-11T15:31:46.000Z","updated_at":"2020-12-10T12:29:22.000Z","dependencies_parsed_at":"2023-03-04T15:30:27.927Z","dependency_job_id":null,"html_url":"https://github.com/ScreamZ/kuzzle-plugin-braintree","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/ScreamZ%2Fkuzzle-plugin-braintree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamZ%2Fkuzzle-plugin-braintree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamZ%2Fkuzzle-plugin-braintree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScreamZ%2Fkuzzle-plugin-braintree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScreamZ","download_url":"https://codeload.github.com/ScreamZ/kuzzle-plugin-braintree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249544,"owners_count":20908212,"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":[],"created_at":"2024-10-30T09:13:58.988Z","updated_at":"2025-04-04T21:16:09.528Z","avatar_url":"https://github.com/ScreamZ.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  Kuzzle Plugin Braintree\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eUse payment in your app and scale well!\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/feross/standard\"\u003e\u003cimg src=\"https://cdn.rawgit.com/feross/standard/master/badge.svg\" alt=\"Standard - JavaScript Style Guide\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr\u003e\n\nSimple install, map you data to handle every transaction and start stacking money in a very easy way!\n\n- **Multiple payment support.** Customers can pay using Paypal, Credit-Card, Android Pay, Apple Pay...\n- **Braintree.** Awesome payment solution and secure. Save your customers in vault.\n\n# Requirements\n\n- **\u003ca href=\"https://github.com/kuzzleio/kuzzle\"\u003e\u003cimg height=\"50\" src=\"http://kuzzle.io/themes/kuzzleio/images/kuzzle-logo-blue-500.png\" alt=\"Kuzzle\"\u003eKuzzle\u003c/a\u003e.** \u003e 1.0.0\n- **Braintree account.** To access the sandbox environment and then the production.\n\n\n# Configuration\n\nAt the initialisation the plugin will search for configuration indexes in elastic in order to store data and transactions.\n\n# Documentation\n\n## Global workflow (Paypal use case)\n\nThe client generate a token and a paypalInstance, then it talk with braintree and paypal to obtain a payment nonce.\n\nOnce done, the user talk to kuzzle with this payment nonce and the shopping basket ID. Kuzzle will internally fetch the document and access the value of the field configured\nin option to validate the transaction. Once done, it generate a transaction in the transaction index with the current connected userID, the braintree transaction ID, allowing\nyou to make calls to the braintree API using method X to fetch transaction status\n\nIf not user is connected while calling checkout, it create a anonymous transaction (not related to someone).\n\nIf user is connected, the transaction will be added to existing user if found, otherwise it will create it will using the kuzzleID as ID, note that you can pass a customer\n`customer` key to fill user information at create, or you can update it later. \n\nPlease read the braintree documentation for technical terms.\n\nYou first need to generate a client, this one is identified by a token, you can generate it for the first time, or \n## Generate client token\n\n**Action :**\n```JSON\n{controller: 'kuzzle-plugin-braintree/braintree', action: 'generateClientToken'}\n```\n\n**Result :**\n\n```json\n{clientToken: somehash}\n```\n\n# Security consideration\n\nSome controller methods must be accessible only by the admin","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreamz%2Fkuzzle-plugin-braintree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscreamz%2Fkuzzle-plugin-braintree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscreamz%2Fkuzzle-plugin-braintree/lists"}