_pay.php
38 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (c) 2023 LatePoint LLC. All rights reserved. |
| 4 | */ |
| 5 | |
| 6 | /* @var $enabled_payment_methods array */ |
| 7 | /* @var $form_prev_button string */ |
| 8 | /* @var $form_next_button string */ |
| 9 | /* @var $transaction_intent OsTransactionIntentModel */ |
| 10 | /* @var $errors array */ |
| 11 | ?> |
| 12 | |
| 13 | <?php |
| 14 | /** |
| 15 | * Content for order payment - pay step before |
| 16 | * |
| 17 | * @param {OsTransactionIntentModel} transaction intent for a payment |
| 18 | * |
| 19 | * @since 5.1.0 |
| 20 | * @hook latepoint_order_payment__pay_content_before |
| 21 | * |
| 22 | */ |
| 23 | do_action( 'latepoint_order_payment__pay_content_before', $transaction_intent ); |
| 24 | |
| 25 | echo '<div class="lp-payment-charge-amount">'.sprintf(esc_html__('Charge Amount: %s', 'latepoint'), '<strong>'.OsMoneyHelper::format_price($transaction_intent->charge_amount, true, false).'</strong>').'</div>'; |
| 26 | echo OsFormHelper::hidden_field('submitting_payment', 'yes'); |
| 27 | |
| 28 | /** |
| 29 | * Content for order payment - pay step after |
| 30 | * |
| 31 | * @param {OsTransactionIntentModel} transaction intent for a payment |
| 32 | * |
| 33 | * @since 5.1.0 |
| 34 | * @hook latepoint_order_payment__pay_content_after |
| 35 | * |
| 36 | */ |
| 37 | do_action( 'latepoint_order_payment__pay_content_after', $transaction_intent ); |
| 38 | ?> |