requestTransactionWithAction method
Request a transaction containing the specified action to be performed by the in-app provider.
A error indicates that the requested transaction could not be executed.
Possible errors listed in the FCXCallKitRequestTransactionError.
Implementation
Future<void> requestTransactionWithAction(FCXAction action) async {
try {
String method = 'requestTransactionWithAction';
await _methodChannel.invokeMethod(
'$_CALL_CONTROLLER.$method',
action._toMap(),
);
_FCXLog._i(runtimeType, '$method: ${action.runtimeType}');
} on PlatformException catch (e) {
var exception = FCXException(e.code, e.message);
_FCXLog._e(runtimeType, exception);
throw exception;
}
}