PluginProbe ʕ •ᴥ•ʔ
LatePoint – Calendar Booking Plugin for Appointments and Events / 5.5.2
LatePoint – Calendar Booking Plugin for Appointments and Events v5.5.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 / settings / payments.php
latepoint / lib / views / settings Last commit date
custom_day_schedule_form.php 1 year ago default_form_fields.php 1 year ago general.php 1 month ago generate_instant_booking_page.php 1 year ago get_pro.php 1 year ago import_modal.php 1 year ago notifications.php 1 year ago pages.php 1 year ago payments.php 1 year ago premium_modal.php 1 year ago steps_order_modal.php 5 months ago version_5_intro.php 1 year ago work_periods.php 1 year ago
payments.php
59 lines
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 exit; // Exit if accessed directly
4 }
5 ?>
6 <div class="latepoint-settings-w os-form-w">
7 <form action="" data-os-action="<?php echo esc_attr(OsRouterHelper::build_route_name('settings', 'update')); ?>">
8 <?php wp_nonce_field('update_settings'); ?>
9 <div class="os-section-header"><h3><?php esc_html_e('Payment Processors', 'latepoint'); ?></h3></div>
10 <div class="os-togglable-items-w">
11 <?php foreach($payment_processors as $payment_processor_code => $payment_processor){ ?>
12 <div class="os-togglable-item-w" id="paymentProcessorToggler_<?php echo esc_attr($payment_processor['code']); ?>">
13 <div class="os-togglable-item-head">
14 <div class="os-toggler-w">
15 <?php echo OsFormHelper::toggler_field('settings[enable_payment_processor_'.$payment_processor_code.']', false, OsPaymentsHelper::is_payment_processor_enabled($payment_processor_code), 'togglePaymentSettings_'.$payment_processor_code, 'large', ['nonce' => wp_create_nonce('update_settings'), 'instant_update_route' => OsRouterHelper::build_route_name('settings', 'update')]); ?>
16 </div>
17 <?php if(!empty($payment_processor['image_url'])) echo '<img class="os-togglable-item-logo-img" src="'.esc_url($payment_processor['image_url']).'"/>'; ?>
18 <div class="os-togglable-item-name"><?php echo esc_html($payment_processor['name']); ?></div>
19 </div>
20 <div class="os-togglable-item-body" style="<?php echo OsPaymentsHelper::is_payment_processor_enabled($payment_processor_code) ? '' : 'display: none'; ?>" id="togglePaymentSettings_<?php echo esc_attr($payment_processor_code); ?>">
21 <?php do_action('latepoint_payment_processor_settings', $payment_processor_code); ?>
22 </div>
23 </div>
24 <?php } ?>
25 </div>
26
27 <div class="os-mb-4">
28 <?php echo OsUtilHelper::pro_feature_block(__('To add other payment processors, upgrade to a paid version', 'latepoint')); ?>
29 </div>
30 <div class="os-section-header"><h3><?php esc_html_e('Other Settings', 'latepoint'); ?></h3></div>
31 <div class="white-box">
32 <div class="white-box-header">
33 <div class="os-form-sub-header"><h3><?php esc_html_e('Payment Settings', 'latepoint'); ?></h3></div>
34 </div>
35 <div class="white-box-content no-padding">
36 <div class="sub-section-row">
37 <div class="sub-section-label">
38 <h3><?php esc_html_e('Environment', 'latepoint') ?></h3>
39 </div>
40 <div class="sub-section-content">
41 <?php echo OsFormHelper::select_field('settings[payments_environment]', false, array(LATEPOINT_PAYMENTS_ENV_LIVE => __('Live', 'latepoint'), LATEPOINT_PAYMENTS_ENV_DEV => __('Development', 'latepoint')), OsSettingsHelper::get_payments_environment()); ?>
42 </div>
43 </div>
44
45 <div class="sub-section-row">
46 <div class="sub-section-label">
47 <h3><?php esc_html_e('Local Payments', 'latepoint') ?></h3>
48 </div>
49 <div class="sub-section-content">
50 <?php echo OsFormHelper::toggler_field('settings[enable_payments_local]', __('Allow Paying Locally', 'latepoint'), OsPaymentsHelper::is_local_payments_enabled(), false, false, ['sub_label' => __('Show "Pay Later" payment option', 'latepoint')]); ?>
51 </div>
52 </div>
53 </div>
54 </div>
55 <div class="os-form-buttons">
56 <?php echo OsFormHelper::button('submit', __('Save Settings', 'latepoint'), 'submit', ['class' => 'latepoint-btn']); ?>
57 </div>
58 </form>
59 </div>