queryTransaction static method
Future
queryTransaction(
- PaymentSdkConfigurationDetails arg,
- PaymentSDKQueryConfiguration paymentSDKQueryConfiguration,
- void eventsCallBack(
- dynamic dynamic
Implementation
static Future<dynamic> queryTransaction(
PaymentSdkConfigurationDetails arg,
PaymentSDKQueryConfiguration paymentSDKQueryConfiguration,
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["paymentSDKQueryConfiguration"] = paymentSDKQueryConfiguration.map;
return await localChannel.invokeMethod('queryTransaction', argsMap);
}