# rn-braintree

> React Native interface to Braintree's Android and iOS SDKs

Latest version **0.2.0** (published 2017-01-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install rn-braintree
pnpm add rn-braintree
yarn add rn-braintree
bun add rn-braintree
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2017-01-27 |
| First published | 2016-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Ryan Leckey |
| Maintainers | mehcode |
| Keywords | react-native, braintree, tokenize |

## Links

- npm: https://www.npmjs.com/package/rn-braintree
- Repository: https://github.com/mehcode/rn-braintree
- Homepage: https://github.com/mehcode/rn-braintree#readme
- Issues: https://github.com/mehcode/rn-braintree/issues
- npm.io page: https://npm.io/package/rn-braintree

## Recent versions

- 0.2.0 (latest) — 2017-01-27
- 0.1.0 — 2016-12-30

## README

# React Native Braintree
> React Native interface to Braintree's Android and iOS SDKs

## Install

1. `npm install --save rn-braintree`

2. `react-native link rn-braintree`

### iOS

Refer to the official
Braintree iOS SDK documentation: https://github.com/braintree/braintree_ios#getting-started

## Usage

### Configure

```js
import Braintree from "rn-braintree";

Braintree.configure("<token>");
```

### Tokenize

```js
import Braintree from "rn-braintree";

// Braintree.configure must have been called previously
Braintree.tokenize({
  card: {
    number: "4111111111111111",
    expirationMonth: "12",
    expirationYear: "2020",
    cvv: "123",
  },
}).then((result) => {
  // result.nonce => "..."
  // result.type => "visa"
  // result.isDefault => true
  // result.description => "..."
}).catch((err) => {
  // [...]
});
```

---
_Source: https://npm.io/package/rn-braintree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
