PluginProbe ʕ •ᴥ•ʔ
VikAppointments Services Booking Calendar / 1.2.21
VikAppointments Services Booking Calendar v1.2.21
1.2.21 1.2.20 trunk 1.2.17 1.2.18 1.2.19
vikappointments / site / layouts / payments / offcc.php
vikappointments / site / layouts / payments Last commit date
fields.php 5 days ago index.html 5 days ago offcc.php 5 days ago paypal.php 5 days ago paypalec.php 5 days ago
offcc.php
113 lines
1 <?php
2 /**
3 * @package VikAppointments
4 * @subpackage core
5 * @author E4J s.r.l.
6 * @copyright Copyright (C) 2021 E4J s.r.l. All Rights Reserved.
7 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
8 * @link https://vikwp.com
9 */
10
11 // No direct access
12 defined('ABSPATH') or die('No script kiddies please!');
13
14 /**
15 * Layout variables
16 * -----------------
17 * @var array $data An associative array containing the transaction details.
18 * @var array $params An associative array with the payment configuration.
19 */
20 extract($displayData);
21
22 ?>
23
24 <form action="<?php echo $data['notify_url']; ?>" method="post" name="offlineccpaymform" id="offlineccpaymform">
25
26 <div class="offcc-payment-wrapper">
27
28 <div class="offcc-payment-box">
29
30 <!-- ACCEPTED BRANDS -->
31 <div class="offcc-payment-field">
32
33 <div class="offcc-payment-field-wrapper">
34 <?php
35 foreach ($params['brands'] as $brand)
36 {
37 ?>
38 <img src="<?php echo VAPADMIN_URI . 'payments/off-cc/resources/icons/' . $brand . '.png'; ?>" title="<?php echo $brand; ?>" alt="<?php echo $brand; ?>" />
39 <?php
40 }
41 ?>
42 </div>
43
44 </div>
45
46 <!-- CARDHOLDER NAME -->
47 <div class="offcc-payment-field">
48
49 <div class="offcc-payment-field-wrapper">
50 <span class="offcc-payment-icon">
51 <i class="fas fa-user"></i>
52 </span>
53
54 <input type="text" name="cardholder" value="<?php echo $data['details']['purchaser_nominative']; ?>" placeholder="<?php echo JText::translate('VAPCCNAME'); ?>" />
55 </div>
56
57 </div>
58
59 <!-- CREDIT CARD -->
60 <div class="offcc-payment-field">
61
62 <div class="offcc-payment-field-wrapper">
63 <span class="offcc-payment-icon">
64 <i class="fas fa-credit-card"></i>
65 </span>
66
67 <input type="text" name="cardnumber" value="" placeholder="<?php echo JText::translate('VAPCCNUMBER'); ?>" maxlength="16" autocomplete="off" />
68
69 <span class="offcc-payment-cctype-icon" id="credit-card-brand"></span>
70 </div>
71
72 </div>
73
74 <!-- EXPIRY DATE AND CVC -->
75 <div class="offcc-payment-field">
76
77 <!-- EXP DATE -->
78 <div class="offcc-payment-field-wrapper inline">
79 <span class="offcc-payment-icon">
80 <i class="fas fa-calendar"></i>
81 </span>
82
83 <input type="text" name="expdate" value="" placeholder="<?php echo JText::translate('VAPEXPIRINGDATEFMT'); ?>" class="offcc-small" maxlength="7" />
84 </div>
85
86 <!-- CVC -->
87 <div class="offcc-payment-field-wrapper inline">
88 <span class="offcc-payment-icon">
89 <i class="fas fa-lock"></i>
90 </span>
91
92 <input type="text" name="cvc" value="" placeholder="<?php echo JText::translate('VAPCVV'); ?>" class="offcc-small" maxlength="4" autocomplete="off" />
93 </div>
94
95 </div>
96
97 <!-- SUBMIT -->
98 <div class="offcc-payment-field">
99
100 <div class="offcc-payment-field-wrapper inline">
101 <button type="submit" onclick="return validateCreditCardForm();" class="cc-submit-btn"><?php echo JText::translate('VAPCCPAYNOW'); ?></button>
102 </div>
103
104 </div>
105
106 </div>
107
108 </div>
109
110 <?php echo JHtml::fetch('form.token'); ?>
111
112 </form>
113