refunds static method

Future<Object> refunds(
  1. String orderId,
  2. String jsonData
)

Implementation

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