Skip to content

Commit

Permalink
Corrige atribuição de Order->Payment (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
laerte-guimaraes authored Mar 1, 2019
1 parent 9d6cf3a commit 5eb13b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Vindi/Subscription/Helper/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5eb13b1

Please sign in to comment.