react-native-juno-rn-card-hash
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Package Sidebar

Install

npm i react-native-juno-rn-card-hash

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

52.2 kB

Total Files

15

Last publish

Collaborators

  • murilo.campaner