getPaymentGateways method

Future<List<WooPaymentGateway>> getPaymentGateways()

Implementation

Future<List<WooPaymentGateway>> getPaymentGateways() async {
  List<WooPaymentGateway> gateways = [];
  _setApiResourceUrl(path: 'payment_gateways');
  final response = await get(queryUri.toString());
  for (var g in response) {
    var sMethod = WooPaymentGateway.fromJson(g);
    _printToLog(
        'shipping zone locations gotten here : ' + sMethod.toString());
    gateways.add(sMethod);
  }
  return gateways;
}