Indici middleware to Stripe API
npm install indici-stripe-apibash
$ 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
$3
https://github.com/indici-apps/indici-stripe-api/issues
$3
This lib need a Stripe API Key
`JavaScript
import Stripe from 'react-native-stripe-api';
const apiKey = '';
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'
});
``