Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

braintree-payments

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

braintree-payments

Typescript Braintree Payments

  • 4.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Braintree Payments Module

Braintree deployment and build status

pipeline status coverage report

Getting started

Read the documentation under docs

To get that on the master server just type:

npm install braintree-payments

To check current status take a look on the tests:

npm test

Working with the bridge

First of all we have to specify the braintree module instance and paste the configuration inside Payments constructor.

const Payments = Braintree.Payments(configuration, currencies, defaultCurrency = 'EUR');

Inside configuration we will have to specify some params

const configuration = {
  environment: 'Sandbox | Qa | Development | Production',
  merchantId: 'MerchantID',
  publicKey: 'PublicKey',
  privateKey: 'PrivateKey'
};

Inside currencies we will have to specify multiple merchant accounts for multiple currencies

const currencies = [
  { currency: 'EUR', account: 'braintreeAccountIdForEur' },
  { currency: 'USD', account: 'braintreeAccountIdForUsd' },
  { currency: 'PLN', account: 'braintreeAccountIdForPln' }
];

Keywords

FAQs

Package last updated on 27 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc