Skip to content

Commit

Permalink
Merge pull request #516 from ebanx/hotfix/notification
Browse files Browse the repository at this point in the history
Updating order when it receives a payment status notification
  • Loading branch information
Cezar Luiz authored Jun 6, 2017
2 parents 2727b2f + c1bd1aa commit 7954141
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 7954141

Please sign in to comment.