startTokenizedCardPayment static method
Future
startTokenizedCardPayment(
- PaymentSdkConfigurationDetails arg,
- String token,
- String transactionRef,
- void eventsCallBack(
- dynamic dynamic
Implementation
static Future<dynamic> startTokenizedCardPayment(
PaymentSdkConfigurationDetails arg,
String token,
String transactionRef,
void eventsCallBack(dynamic)) async {
arg.samsungPayToken = null;
MethodChannel localChannel = MethodChannel('flutter_paytabs_bridge');
EventChannel localStream =
const EventChannel('flutter_paytabs_bridge_stream');
localStream.receiveBroadcastStream().listen(eventsCallBack);
var logoImage = arg.iOSThemeConfigurations?.logoImage ?? "";
if (logoImage != "") {
arg.iOSThemeConfigurations?.logoImage = await handleImagePath(logoImage);
}
var argsMap = arg.map;
argsMap["token"] = token;
argsMap["transactionRef"] = transactionRef;
return await localChannel.invokeMethod(
'startTokenizedCardPayment', argsMap);
}