Little Stripe library for React-Native.
$ npm i indici-stripe-api --save
or
$ yarn add indici-stripe-api
- include a payment form component
- include react-native-awesome-card-io
- a new server project to keep secret
https://github.com/indici-apps/indici-stripe-api/issues
This lib need a Stripe API Key
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'
});
Name | Return Type | Arguments | Description |
---|---|---|---|
createToken | Promise |
|
Create a new token (equivalent of a new card) |
|
made with ♥