react-native-pagarme-card-hash
React Native module for generating pagar.me card hashes
Support
Works on iOS 10+ and Android 4.1+
Installation
yarn add react-native-rsa-native react-native-pagarme-card-hash
Usage
import generateCardHash from 'react-native-pagarme-card-hash';
// ...
const hash = await generateCardHash(
{
number: '5315084062046316',
holderName: 'John Doe',
expirationDate: '0921',
cvv: '560',
},
'<your encryption key>'
);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT