2.0.1 • Published 6 years ago

@kakadu-dev/react-native-bepaid v2.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

React Native Bepaid

React Native library for accepting payments with Bepaid SDK

Install

Download package:

npm install --save react-native-bepaid

or

yarn add react-native-bepaid

Methods

createEncryptedFields()

Create encrypted card fields. Returns a Promise that resolve encrypted fields (Object).

Arguments

  • cardNumber - String Number of payment card.
  • cardExp - String Expire date of payment card.
  • cardCvv - String CVV code of payment card.
  • cardHolder - String Card holder name

Examples

import RNBepaid from 'react-native-bepaid';

const exampleCard = {
  number: '4200000000000000',
  extDate: '12/21',
  cvvCode: '123',
  cardHolder: 'IVANOV IVAN'
};

RNBepaid.createEncryptedFields(exampleCard.number, exampleCard.extDate, exampleCard.cvvCode, exampleCard.cardHolder)
  .then(encryptedFields => {
    console.log(encryptedFields);
  });

License

Licensed under the MIT License.

2.0.1

6 years ago

2.0.0

6 years ago