# indici-stripe-api

> Indici middleware to Stripe API

Latest version **1.1.0** (published 2020-08-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install indici-stripe-api
pnpm add indici-stripe-api
yarn add indici-stripe-api
bun add indici-stripe-api
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-08-17 |
| First published | 2020-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Xavier Carpentier |
| Maintainers | haseeb7337 |
| Keywords | react-native, Stripe |

## Links

- npm: https://www.npmjs.com/package/indici-stripe-api
- Repository: https://github.com/indici-apps/indici-stripe-api
- Issues: https://github.com/indici-apps/indici-stripe-api/issues
- npm.io page: https://npm.io/package/indici-stripe-api

## Recent versions

- 1.1.0 (latest) — 2020-08-17

## README

# indici-stripe-api (only to create token)

Little Stripe library for React-Native.

### Installation
```bash
$ npm i indici-stripe-api --save
```
or
```bash
$ yarn add indici-stripe-api
```

## Roadmap
- include a payment form component
- include react-native-awesome-card-io
- a new server project to keep secret

## Setup

### Security issue (`fixed since 0.1.0`)

https://github.com/indici-apps/indici-stripe-api/issues

### Stripe API

This lib need a Stripe API Key
```JavaScript
import Stripe from 'react-native-stripe-api';

const apiKey = '<your Stripe API Key>';
const client = new Stripe(apiKey);

// Create a Stripe token with new card infos
const token = await client.createToken({
       number: '4242424242424242' ,
       exp_month: '09', 
       exp_year: '18', 
       cvc: '111',
       address_zip: '12345'
    });



```

## Functions

| Name | Return Type | Arguments | Description |
| --- | --- | --- | --- |
| createToken | Promise |<ul><li>cardNumber: string</li> <li>expMonth: string</li><li>expYear: string</li><li>cvc: string</li></ul>| Create a new token (equivalent of a new card) |
| 

> made with ♥

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