partials
9 months ago
_booking__agents.php
9 months ago
_booking__datepicker.php
9 months ago
_booking__services.php
9 months ago
_confirmation.php
9 months ago
_customer.php
4 months ago
_payment__methods.php
1 year ago
_payment__pay.php
1 year ago
_payment__portions.php
1 year ago
_payment__processors.php
1 year ago
_payment__times.php
1 year ago
_verify.php
1 year ago
load_step.php
1 year ago
preset_slot_not_available.php
1 year ago
start.php
1 year ago
start_instant.php
1 year ago
_payment__pay.php
47 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $current_step_code string |
| 4 | * @var $cart OsCartModel |
| 5 | * @var $restrictions array |
| 6 | * @var $presets array |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; // Exit if accessed directly |
| 11 | } |
| 12 | |
| 13 | |
| 14 | ?> |
| 15 | <div class="step-payment-pay-w latepoint-step-content" |
| 16 | data-step-code="<?php echo esc_attr($current_step_code); ?>" |
| 17 | data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>"> |
| 18 | |
| 19 | <?php |
| 20 | do_action('latepoint_before_step_content', $current_step_code); |
| 21 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'before'); |
| 22 | |
| 23 | $order_intent = $cart->get_order_intent(); |
| 24 | if(!$order_intent->is_new_record()) echo '<div class="lp-payment-charge-amount">'.sprintf(esc_html__('Charge Amount: %s', 'latepoint'), '<strong>'.OsMoneyHelper::format_price($order_intent->charge_amount, true, false).'</strong>').'</div>'; |
| 25 | |
| 26 | do_action('latepoint_step_payment__pay_content', $cart); |
| 27 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); |
| 28 | do_action('latepoint_after_step_content', $current_step_code); |
| 29 | if(empty($cart->payment_time)){ |
| 30 | $cart->set_payment_time(); |
| 31 | echo OsFormHelper::hidden_field('cart[payment_time]', $cart->payment_time); |
| 32 | } |
| 33 | if(empty($cart->payment_portion)){ |
| 34 | $cart->set_payment_portion(); |
| 35 | echo OsFormHelper::hidden_field('cart[payment_portion]', $cart->payment_portion); |
| 36 | } |
| 37 | if(empty($cart->payment_method)){ |
| 38 | $cart->set_payment_method(); |
| 39 | echo OsFormHelper::hidden_field('cart[payment_method]', $cart->payment_method); |
| 40 | } |
| 41 | if(empty($cart->payment_processor)){ |
| 42 | $cart->set_payment_processor(); |
| 43 | echo OsFormHelper::hidden_field('cart[payment_processor]', $cart->payment_processor); |
| 44 | } |
| 45 | echo OsFormHelper::hidden_field('cart[payment_token]', ''); |
| 46 | ?> |
| 47 | </div> |