@kakadu-dev/react-native-bepaid
v2.0.1
Published
Bepaid SDK for react-native
Downloads
3
Maintainers
Readme
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.