PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.4.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.4.2
5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.2 5.5.1 5.5.0 5.4.2 trunk 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5 5.1.6 5.1.7 5.1.8 5.1.9 5.1.91 5.1.92 5.1.93 5.1.94 5.2.0 5.2.1 5.2.10 5.2.11 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.8 5.2.9 5.3.0 5.3.1 5.3.2 5.4.0 5.4.1
latepoint / lib / views / steps / _payment__pay.php
latepoint / lib / views / steps Last commit date
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>