The best Stripe library for React Native.
$ npm i react-native-stripe-api --save
This lib need a Stripe API Key
const apiKey = '<your Stripe API Key>';
const Stripe = new Stripe(apiKey);
Name | Return Type | Arguments | Description |
---|---|---|---|
createToken | Promise |
|
Create a new token (equivalent of a new card) |
createCustomer | Promise |
|
Create a new customer and add card (or token) |
getCustomer | Promise | customerId: string | Retrieve customer by its id |
createCharge | Promise |
|
Create a new charge |
refundCharge | Promise | chargeId: string | Refund a previous charge |
addCardToCustomer | Promise |
|
Add a new card to a customer |
destroyCardOfCustomer | Promise |
|
Delete a card from a customer |
-
@xcapentier The main author.
PRs are welcome !
Feel free to contact me or create an issue
made with ♥