Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-stripe-create-token
Advanced tools
Readme
Little Stripe library for React-Native.
$ npm i react-native-stripe-create-token --save
or
$ yarn add react-native-stripe-create-token
fixed since 0.1.0
)https://github.com/melvynkim/react-native-stripe-create-token/issues/8
This lib need a Stripe API Key
const apiKey = '<your Stripe API Key>';
const client = new Stripe(apiKey);
// Create a Stripe token with new card infos
const token = await client.createToken('4242424242424242' , '09', '18', '111');
// Create a new customer and link your new card
// const customer = await client.createCustomer(token.id, 'customer@email.com', '<Your user ID>', 'John', 'Doe');
// Create charge, 1 USD
// const charge = await client.createCharge(1 * 100, customer.id, 'Payment example','USD');
Name | Return Type | Arguments | Description |
---|---|---|---|
createToken | Promise |
| Create a new token (equivalent of a new card) |
Promise |
| Create a new customer and add card (or token) | |
Promise | customerId: string | Retrieve customer by its id | |
Promise |
| Create a new charge | |
Promise | chargeId: string | Refund a previous charge | |
Promise |
| Add a new card to a customer | |
Promise |
| Delete a card from a customer | |
Promise |
| Subscribes a customer to a subscription plan | |
Promise |
| Retrieve the data of a subscription |
> Android 4.4
see https://github.com/melvynkim/react-native-stripe-create-token/issues/5@xcapentier The main author.
PRs are welcome !
Feel free to contact me or create an issue
made with ♥
FAQs
A small React Native library for Stripe Rest API
The npm package react-native-stripe-create-token receives a total of 0 weekly downloads. As such, react-native-stripe-create-token popularity was classified as not popular.
We found that react-native-stripe-create-token demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.