partials
1 year ago
_booking__agents.php
1 year ago
_booking__datepicker.php
1 year ago
_booking__services.php
1 year ago
_confirmation.php
1 year ago
_customer.php
1 year 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
_payment__processors.php
39 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_processors array |
| 8 | */ |
| 9 | |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; // Exit if accessed directly |
| 12 | } |
| 13 | |
| 14 | |
| 15 | ?> |
| 16 | <div class="step-payment-processors-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-processors-w"> |
| 24 | <div class="lp-options lp-options-grid lp-options-grid-three"> |
| 25 | <?php foreach ($enabled_payment_processors as $pay_processor_code => $pay_processor) { ?> |
| 26 | <?php |
| 27 | $pay_processor['label'] = $pay_processor['front_name'] ?? $pay_processor['name']; |
| 28 | $pay_processor['css_class'] = $pay_processor['css_class'] ?? 'lp-payment-trigger-payment-processor-selector'; |
| 29 | $pay_processor['attrs'] = $pay_processor['attrs'] ?? ' data-holder="cart[payment_processor]" data-value="' . esc_attr($pay_processor_code) . '" '; |
| 30 | echo OsStepsHelper::output_list_option($pay_processor); ?> |
| 31 | <?php } ?> |
| 32 | </div> |
| 33 | </div> |
| 34 | <?php |
| 35 | echo OsStepsHelper::get_formatted_extra_step_content($current_step_code, 'after'); |
| 36 | do_action('latepoint_after_step_content', $current_step_code); |
| 37 | ?> |
| 38 | <?php echo OsFormHelper::hidden_field('cart[payment_processor]', $cart->payment_processor, ['class' => 'latepoint_cart_payment_processor', 'skip_id' => true]); ?> |
| 39 | </div> |