datatrans android and ios integration
npm install ct-react-native-datatrans
import Datatrans from "ct-react-native-datatrans";
// ...
const result = await Datatrans.transaction('mobileToken');
or
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.
If you need to activate datatrans version 1.4 use ct-react-native-datatrans@1.4 or else use latest version to support to datatran version 1.5.1
IOS card payment done. Live payment also tested
MIT