Skip to content

kakadu-dev/react-native-bepaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.