initPayment method
dynamic
initPayment
(- {Function onSuccess,
- Function onError}
)
Implementation
initPayment({Function onSuccess, Function onError}){
final Map<String, dynamic> params = <String, dynamic>{
"merchantKey": _merchantKey,
"productId": _productId,
"productName": _productName,
"productUrl": _productUrl,
"urlSchemeIOS": _urlSchemeIOS,
"amount": _amount,
"enableEbanking": _enableEBanking,
"enableMobileBanking": _enableMobileBanking,
"enableIPS": _enableIPS,
"enableSCT": _enableSCT,
};
_channel.invokeMethod("khaltiPaymentStart", params);
_listenToResponse(onSuccess, onError);
}