reprint method
Future<void>
reprint(
)
override
Implementation
@override
Future<void> reprint() async {
try {
final response = await methodChannel.invokeMethod<Map>('reprint');
if (response is Map) {
if (response['code'] == GetnetStatusDeeplink.ERROR.name) {
throw GetnetReprintException(message: response['message']);
}
} else {
throw GetnetReprintException(message: 'invalid response');
}
} on GetnetReprintException catch (e) {
throw GetnetReprintException(message: e.message);
} on PlatformException catch (e) {
throw GetnetReprintException(message: e.message ?? 'PlatformException');
} catch (e) {
throw GetnetReprintException(message: "reprint payment Error: $e");
}
}