From c1bd1aa8987af25866e7c1e3e44808561ae42555 Mon Sep 17 00:00:00 2001 From: Cezar Luiz Date: Tue, 6 Jun 2017 16:51:53 -0300 Subject: [PATCH] Updating order when it receives a payment status notification --- woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php | 1 + 1 file changed, 1 insertion(+) diff --git a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php index dbd90431..cee71078 100644 --- a/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php +++ b/woocommerce-gateway-ebanx/gateways/class-wc-ebanx-gateway.php @@ -992,6 +992,7 @@ final public function update_payment($order, $data) { if ($new_status !== $order->status) { $paymentStatus = $status[$data->payment->status]; $order->add_order_note(sprintf(__('EBANX: The payment has been updated to: %s.', 'woocommerce-gateway-ebanx'), $paymentStatus)); + $order->update_status($new_status); } }