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__methods.php
38 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @var $current_step_code string |
| 4 | * @var $cart OsCartModel |
| 5 | * @var $restrictions array |
| 6 | * @var $presets array |
| 7 | * @var $enabled_payment_methods array |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly |
| 12 | } |
| 13 | |
| 14 | |
| 15 | ?> |
| 16 | <div class="step-payment-methods-w latepoint-step-content" |
| 17 | data-step-code="<?php echo esc_attr($current_step_code); ?>" |
| 18 | data-next-btn-label="<?php echo esc_attr(OsStepsHelper::get_next_btn_label_for_step($current_step_code)); ?>"> |
| 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 | <div class="lp-payment-methods-w"> |
| 24 | <div class="lp-options lp-options-grid lp-options-grid-three"> |
| 25 | <?php foreach ($enabled_payment_methods as $pay_method_code => $pay_method_processors) { |
| 26 | $pay_method_info = reset($pay_method_processors); |
| 27 | $pay_method_info['css_class'] = $pay_method_info['css_class'] ?? 'lp-payment-trigger-payment-method-selector'; |
| 28 | $pay_method_info['attrs'] = $pay_method_info['attrs'] ?? ' data-holder="cart[payment_method]" data-value="' . esc_attr($pay_method_code) . '" '; |
| 29 | echo OsStepsHelper::output_list_option($pay_method_info); ?> |
| 30 | <?php } ?> |
| 31 | </div> |
| 32 | </div> |
| 33 | <?php |
| 34 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); |
| 35 | do_action('latepoint_after_step_content', $current_step_code); |
| 36 | ?> |
| 37 | <?php echo OsFormHelper::hidden_field('cart[payment_method]', $cart->payment_method, ['class' => 'latepoint_cart_payment_method', 'skip_id' => true]); ?> |
| 38 | </div> |