{"_id":"@darklordzw/braintree","name":"@darklordzw/braintree","dist-tags":{"latest":"3.14.0"},"versions":{"3.14.0":{"name":"@darklordzw/braintree","version":"3.14.0","description":"A fork of the library for server-side integrating with Braintree.","keywords":["braintree","payments"],"homepage":"https://github.com/braintree/braintree_node","author":{"name":"Braintree","email":"code@braintreepayments.com","url":"https://www.braintreepayments.com"},"main":"index","directories":{"lib":"./lib"},"repository":{"type":"git","url":"git+https://github.com/braintree/braintree_node.git"},"engines":{"node":">=10.0","npm":">=6"},"dependencies":{"@braintree/wrap-promise":"2.1.0","dateformat":"4.5.1","xml2js":"0.5.0"},"devDependencies":{"chai":"^4.3.4","eslint":"^7.26.0","eslint-config-braintree":"^4.0.0","eslint-config-prettier":"^8.5.0","mocha":"^8.4.0","mocha-junit-reporter":"^2.1.0","prettier":"^2.7.1","sinon":"^10.0.0"},"license":"MIT","scripts":{"prettier":"prettier --write .","prelint":"prettier --check .","lint":"eslint lib/ test/","pretest":"npm run lint","test:unit":"mocha test/unit --recursive -r test/spec_helper","test:unit:report":"mocha test/unit --recursive -r test/spec_helper --reporter mocha-junit-reporter  --reporter-options mochaFile=tmp/build/unit_test_results.junit.xml","test:integration":"mocha --timeout 60000 --slow 2000 test/integration --recursive -r test/spec_helper","test:integration:report":"mocha --timeout 60000 --slow 2000 test/integration --recursive -r test/spec_helper --reporter mocha-junit-reporter  --reporter-options mochaFile=tmp/build/integration_test_results.junit.xml","test":"npm run test:unit"},"gitHead":"9d5b0b9cd7d54f8406cbe024d22ea410e75d1722","bugs":{"url":"https://github.com/braintree/braintree_node/issues"},"_id":"@darklordzw/braintree@3.14.0","_nodeVersion":"16.13.1","_npmVersion":"8.2.0","dist":{"integrity":"sha512-sfYTvPVYCXeyT79OCkCrjt4MvX4uGAqNasSNlg31d1xOJr7fiXeliCjVD8NriEpm3ccPwnWmxBuEu+l4YbWtTQ==","shasum":"c236e0629e2f972a1113e8ca6d72387e04e22206","tarball":"https://registry.npmjs.org/@darklordzw/braintree/-/braintree-3.14.0.tgz","fileCount":152,"unpackedSize":312390,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCM4/7FBx5SCmb9r/CvtlD03yYkpuIo1s3QDpj4PU4aLAIgV0RNQGVFDUMY1pYsC0as3KS6FSwqjkeyIDZBQ76LpIw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNWfoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMvBAAh2lWOvqL7MeUiIa/Yt37alVkKKK5TLw9T452CPrT0GR8EqvJ\r\nP4TrTv7LsF/zJDdySr5JlzL42fFv2lprBRlKjLMfWdfzvdpfuZ13NIT0HQPb\r\nXL+G71DYx7UAMfeyybFsCNk7EDz2oJ6ZC6TqqsmOztFVl8RPgevwwPi+9TAC\r\n/TjCnuWfdGuVAKpngkd2UFw8+q7kYW6xpOZVLC5D/TQ/MXvwGKwkdRoH0Pni\r\n46YsunoFdrYaFFVXsJRsEH6DTW1zBiIy/3IyVTxZulKPBCl0FVAMQTZkVmf/\r\nI0tLDvPEBjbdaHlQgegBe9I/jfO4jTBEGMFmKN8/wUIX+PyOQz3sGswdK0lV\r\naGe1j0NokFvBO1KyiYW1NMMOh5fsjTxr6u3MyiMY9/GFZb5L5u9uqHK1r369\r\n9rWsielBnuX2avCRDLW3Om+XNjfVFeVS/77DPvLqqqTVpUvTFWhwfY8ZyHpt\r\njFvDyhVdZEfPQUBO8/98CVOhfLaz5hXP9e3dvewcl0dSGKRPdDgKcOINs7OG\r\nZwfKyU/9wej9mms+bwYl+PVYJ99mCSlCIqwww6wl9I4gkpW0EIIbN06FeCj2\r\nH28ccHn0K9EQDCQ39p93QY4XE3pdOvE7eJyMj0DceBQyoce5+8O0uXjnOfjF\r\nkZLhe4T+SbaEfPwLrLovKV70sp5p4Jz2xhU=\r\n=IENE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"darklordzw","email":"what.ley.ster@gmail.com"},"maintainers":[{"name":"darklordzw","email":"what.ley.ster@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/braintree_3.14.0_1681221607777_0.3194607673210992"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-11T14:00:07.716Z","3.14.0":"2023-04-11T14:00:08.013Z","modified":"2023-04-11T14:00:08.199Z"},"maintainers":[{"name":"darklordzw","email":"what.ley.ster@gmail.com"}],"description":"A fork of the library for server-side integrating with Braintree.","homepage":"https://github.com/braintree/braintree_node","keywords":["braintree","payments"],"repository":{"type":"git","url":"git+https://github.com/braintree/braintree_node.git"},"author":{"name":"Braintree","email":"code@braintreepayments.com","url":"https://www.braintreepayments.com"},"bugs":{"url":"https://github.com/braintree/braintree_node/issues"},"license":"MIT","readme":"## Braintree Node library\r\n\r\nThe Braintree Node library provides integration access to the Braintree Gateway.\r\n\r\n## Please Note\r\n\r\n> **The Payment Card Industry (PCI) Council has [mandated](https://blog.pcisecuritystandards.org/migrating-from-ssl-and-early-tls) that early versions of TLS be retired from service. All organizations that handle credit card information are required to comply with this standard. As part of this obligation, Braintree is updating its services to require TLS 1.2 for all HTTPS connections. Braintree will also require HTTP/1.1 for all connections. Please see our [technical documentation](https://github.com/paypal/tls-update) for more information.**\r\n\r\n## Installation\r\n\r\n- `npm install braintree`\r\n- `var braintree = require('braintree')`\r\n\r\n### Dependencies\r\n\r\n- node >= 10\r\n\r\n## Versions\r\n\r\nBraintree employs a deprecation policy for our SDKs. For more information on the statuses of an SDK check our [developer docs](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-deprecation-policy).\r\n\r\n| Major version number | Status   | Released       | Deprecated     | Unsupported    |\r\n| -------------------- | -------- | -------------- | -------------- | -------------- |\r\n| 3.x.x                | Active   | September 2020 | TBA            | TBA            |\r\n| 2.x.x                | Inactive | February 2017  | September 2022 | September 2023 |\r\n\r\n## Links\r\n\r\n- [Documentation](https://developer.paypal.com/braintree/docs/start/hello-server/node)\r\n- [Bug Tracker](https://github.com/braintree/braintree_node/issues)\r\n\r\nUpdating from an Inactive, Deprecated, or Unsupported version of this SDK? Check our [Migration Guide](https://developer.paypal.com/braintree/docs/reference/general/server-sdk-migration-guide/node) for tips.\r\n\r\n## Quick Start\r\n\r\n```javascript\r\nvar braintree = require(\"braintree\");\r\n\r\nvar gateway = new braintree.BraintreeGateway({\r\n  environment: braintree.Environment.Sandbox,\r\n  merchantId: \"your_merchant_id\",\r\n  publicKey: \"your_public_key\",\r\n  privateKey: \"your_private_key\",\r\n});\r\n\r\ngateway.transaction.sale(\r\n  {\r\n    amount: \"5.00\",\r\n    paymentMethodNonce: \"nonce-from-the-client\",\r\n    options: {\r\n      submitForSettlement: true,\r\n    },\r\n  },\r\n  function (err, result) {\r\n    if (err) {\r\n      console.error(err);\r\n      return;\r\n    }\r\n\r\n    if (result.success) {\r\n      console.log(\"Transaction ID: \" + result.transaction.id);\r\n    } else {\r\n      console.error(result.message);\r\n    }\r\n  }\r\n);\r\n```\r\n\r\n## Promises\r\n\r\nYou can also use Promises instead of callbacks.\r\n\r\n```javascript\r\nvar braintree = require(\"braintree\");\r\n\r\nvar gateway = new braintree.BraintreeGateway({\r\n  environment: braintree.Environment.Sandbox,\r\n  merchantId: \"your_merchant_id\",\r\n  publicKey: \"your_public_key\",\r\n  privateKey: \"your_private_key\",\r\n});\r\n\r\ngateway.transaction\r\n  .sale({\r\n    amount: \"5.00\",\r\n    paymentMethodNonce: \"nonce-from-the-client\",\r\n    options: {\r\n      submitForSettlement: true,\r\n    },\r\n  })\r\n  .then(function (result) {\r\n    if (result.success) {\r\n      console.log(\"Transaction ID: \" + result.transaction.id);\r\n    } else {\r\n      console.error(result.message);\r\n    }\r\n  })\r\n  .catch(function (err) {\r\n    console.error(err);\r\n  });\r\n```\r\n\r\nAlmost all methods that uses a callback can alternatively use a Promise. The only exceptions are `gateway.merchantAccount.all` or any of the `search` methods because they return a stream if no callback is provided.\r\n\r\n## Documentation\r\n\r\n- [Official documentation](https://developer.paypal.com/braintree/docs/start/hello-server)\r\n\r\n## Developing (Docker)\r\n\r\nThe `Makefile` and `Dockerfile` will build an image containing the dependencies and drop you to a terminal where you can run tests.\r\n\r\n```\r\nmake\r\n```\r\n\r\n## Tests\r\n\r\nThe unit specs can be run by anyone on any system, but the integration specs are meant to be run against a local development server of our gateway code. These integration specs are not meant for public consumption and will likely fail if run on your system. To run unit tests use rake (`rake test:unit`) or npm (`npm test`).\r\n\r\n## License\r\n\r\nSee the LICENSE file.\r\n","readmeFilename":"README.md"}