Skip to content

Commit

Permalink
Improved: OrderPaymentLinkSender
Browse files Browse the repository at this point in the history
Now created `Order` passed to email template to be able to render breakdown / user can see what he pays for
  • Loading branch information
igormukhingmailcom committed Sep 10, 2020
1 parent 8ed2ae5 commit 964dbb2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Sender/OrderPaymentLinkSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public function sendPaymentLink(OrderInterface $order): void
->send(
'order_created_in_admin_panel',
[$order->getCustomer()->getEmail()],
['paymentLink' => $paymentDetails['payment-link']]
[
'order' => $order,
'paymentLink' => $paymentDetails['payment-link']
]
)
;
}
Expand Down

0 comments on commit 964dbb2

Please sign in to comment.