0.1.3 • Published 3 years ago

pvcb-vietsens-rn v0.1.3

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

pvcb-vietsens-rn

SDK PVcomBank for Vietsens

Request

  • Minimum iOS Deployment Target: 11.0
  • Xcode 13 or newer
  • Swift 5
  • Android minSdkVersion: 23
  • Permissions: Camera

Installation

npm install pvcb-vietsens-rn

or

yarn add pvcb-vietsens-rn

iOS

Need to unzip file TensorFlowLiteC.framework.zip in node_modules/pvcb-vietsens-rn/ios_frameworks folder.

Next action

cd ios && pod install && cd ..

Usage

import { PVcomBankKYC } from 'pvcb-vietsens-rn';

let isPro = false; // bool
let appId = 'xxxxx'; // string
let appCode = 'xxxxx'; // string
let userIdPartner = null; // string | undefined | null
PVcomBankKYC.configure(isPro, appId, appCode, userIdPartner);

PVcomBankKYC.start((status) => {
  console.debug('PVcomBank kyc:', status);
});

PVcomBankKYC.startWithInfo(
  { phoneNumber: 'xxxxx', email: 'xxxxx' },
    (status) => {
      console.debug('PVcomBank kyc:', status);
  }
);
import { PVcomBankPayment } from 'pvcb-vietsens-rn';

// PVcomBankPayment
let clientId = 'xxxxx'; // string
let clientSecret = 'xxxxx'; // string
let appUnitId = 'xxxxx'; // string
let appId = 'xxxxx'; // string
PVcomBankPayment.configure(clientId, clientSecret, appUnitId, appId);

let orderCode = 'xxxxx'; // string
let orderAmount = 'xxxxx'; // string
let orderContent = 'xxxxx'; // string | undefined | null
let partnerName = 'xxxxx'; // string | undefined | null
PVcomBankPayment.start(
  orderCode,
  orderAmount,
  orderContent,
  partnerName,
  (status) => {
    console.debug('PVcomBank payment:', status);
  }
);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.1.3

3 years ago