startPayoutFlow static method
Implementation
static Future<FlutterTestPayoutResult> startPayoutFlow(
String payoutIntentId) async {
try {
var result = await _channel.invokeMethod('startPayoutFlow',
<String, dynamic>{'payoutIntentId': payoutIntentId});
if (result == null || result.isEmpty) {
throw 'Unable to get status for payout $payoutIntentId';
} else {
return FlutterTestPayoutResult.fromJson(result);
}
} on PlatformException catch (e) {
throw 'Unable to complete payout flow for $payoutIntentId: ${e.message}';
}
}