Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Read payment method from order
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Oct 16, 2020
1 parent f1d1ff1 commit 9f9a2a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n"
. $customer->make_address_label($order->billing, 0, '', "\n") . "\n\n";

$payment = $GLOBALS[$_SESSION['payment']];
$payment = $GLOBALS[$order->info['payment_method']];
if (is_object($payment)) {
echo MODULE_NOTIFICATIONS_CHECKOUT_TEXT_PAYMENT_METHOD . "\n"
. MODULE_NOTIFICATIONS_CHECKOUT_SEPARATOR . "\n";
Expand Down

0 comments on commit 9f9a2a6

Please sign in to comment.