revoke static method

Future<AWResponseModel<bool>> revoke(
  1. String productId
)

退款--仅供安卓

Implementation

static Future<AWResponseModel<bool>> revoke(String productId) async {
  var result =
      await _channel.invokeMethod('revoke', {"productId": productId});
  final model = getResponseModel(result);
  if (!model.result) {
    return AWResponseModel.sendFailed(model.msg);
  }
  return AWResponseModel.sendSuccess(model.result);
}