datatrans android and ios integration
npm install ct-react-native-datatransdatatrans android and ios integration
``sh`
npm install ct-react-native-datatrans
`js
import Datatrans from "ct-react-native-datatrans";
// ...
const result = await Datatrans.transaction('mobileToken');
`
or
`js
const result = await Datatrans.transaction('mobileToken',options);
options = {
aliasPaymentMethods?: [{
alias?: string,
ccNumber?: string,
expiryMonth?: number,
expiryYear?: number,
paymentMethods?: string
cardHolder?:string
}],
isTesting: boolean,
isUseCertificatePinning: boolean,
appCallbackScheme: string
}
callbackshema name is "ctdtsdk"
``
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT