react-native-juno-rn-card-hash
v1.2.0
Published
SDK de integração com o gateway de pagamentos JUNO para ReactNative (Pode ser usado com Expo)
Downloads
16
Maintainers
Readme
react-native-juno-rn-card-hash
SDK de integração com o gateway de pagamentos JUNO para ReactNative (Pode ser usado com Expo)
Installation
npm install react-native-juno-rn-card-hash
Usage
/** Necessary to encode ArrayBuffer (TextEncoder.encode()) */
import '@expo/browser-polyfill';
import JunoCardHash from 'react-native-juno-rn-card-hash';
// ...
// Credit Card Data to be hashed
const cardData = {
cardNumber: '5207156147520886',
holderName: 'Foo bar',
securityCode: '265',
expirationMonth: '11',
expirationYear: '2021',
};
// Generate Card Hash
Juno.getCardHash(cardData)
.then(console.log)
.catch(console.error);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT