getCapturePayment static method

Future<Object> getCapturePayment(
  1. String jsonData
)

Implementation

static Future<Object> getCapturePayment(String jsonData) async {
  try {
    Object result = await platform.invokeMethod(
        'capturePayment', <String, String>{'capturePayment': jsonData});
    return result;
  } on PlatformException catch (e) {
    showToast(e.message.toString());
    rethrow;
  }
}