From 5eb13b1f220447abbcfe3da6feb366066cdda384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laerte=20Guimar=C3=A3es?= <31661772+laerte-guimaraes@users.noreply.github.com> Date: Fri, 1 Mar 2019 17:50:50 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20atribui=C3=A7=C3=A3o=20de=20Order->Pa?= =?UTF-8?q?yment=20(#98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/code/community/Vindi/Subscription/Helper/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Vindi/Subscription/Helper/Order.php b/app/code/community/Vindi/Subscription/Helper/Order.php index 07bb293..36fbbb0 100644 --- a/app/code/community/Vindi/Subscription/Helper/Order.php +++ b/app/code/community/Vindi/Subscription/Helper/Order.php @@ -102,7 +102,7 @@ public function createInvoice($order, $data) $this->logWebhook('Gerando fatura para o pedido: ' . $orderId); $this->updateToSuccess($order); $paymentMethod = new Vindi_Subscription_Model_PaymentMethod(); - $paymentMethod->processPaidReturn($data['bill'], $order->getPayment()); + $paymentMethod->processPaidReturn($data['bill'], $order); $this->logWebhook('Fatura gerada com sucesso.'); return true; }