updatePaymentGateway method
Updates an existing order and returns the WooPaymentGateway object.
Related endpoint: https://woocommerce.github.io/woocommerce-rest-api-docs/#orders.
Implementation
Future<WooPaymentGateway> updatePaymentGateway(
WooPaymentGateway gateway) async {
_printToLog(
'Updating Payment Gateway With Payload : ' + gateway.toString());
_setApiResourceUrl(
path: 'payment_gateways/' + gateway.id!,
);
final response = await put(queryUri.toString(), gateway.toJson());
return WooPaymentGateway.fromJson(response);
}