getPaymentGatewayById method
Returns a WooPaymentGateway object from the specified id
.
Implementation
Future<WooPaymentGateway> getPaymentGatewayById(int id) async {
WooPaymentGateway paymentGateway;
_setApiResourceUrl(path: 'payment_gateways/' + id.toString());
final response = await get(queryUri.toString());
paymentGateway = WooPaymentGateway.fromJson(response);
return paymentGateway;
}