| 1 |
<?php |
| 2 |
|
| 3 |
defined('ABSPATH') or die; |
| 4 |
|
| 5 |
/** @var object $transaction */ |
| 6 |
/** @var string $transactionTotal */ |
| 7 |
/** @var array $items */ |
| 8 |
/** @var array $discountItems */ |
| 9 |
/** @var string $subTotal */ |
| 10 |
/** @var string $orderTotal */ |
| 11 |
?> |
| 12 |
<div class="ff_payment_transaction"> |
| 13 |
<?php |
| 14 |
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped -- Content is escaped in the loaded view files |
| 15 |
echo \FluentForm\App\Modules\Payments\PaymentHelper::loadView('transaction_info', [ |
| 16 |
'transaction' => $transaction, |
| 17 |
'transactionTotal' => $transactionTotal |
| 18 |
]); |
| 19 |
|
| 20 |
echo \FluentForm\App\Modules\Payments\PaymentHelper::loadView('order_items_table', [ |
| 21 |
'items' => $items, |
| 22 |
'discount_items' => $discountItems, |
| 23 |
'subTotal' => $subTotal, |
| 24 |
'orderTotal' => $orderTotal |
| 25 |
]); |
| 26 |
|
| 27 |
echo \FluentForm\App\Modules\Payments\PaymentHelper::loadView('customer_details', [ |
| 28 |
'transaction' => $transaction |
| 29 |
]); |
| 30 |
|
| 31 |
echo \FluentForm\App\Modules\Payments\PaymentHelper::loadView('custom_css', []); |
| 32 |
// phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 33 |
|
| 34 |
?> |
| 35 |
</div> |
| 36 |
|