React Native library for accepting payments with Bepaid SDK
Download package:
npm install --save react-native-bepaid
or
yarn add react-native-bepaid
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);
});
Licensed under the MIT License.