PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 3.5.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v3.5.3
3.6.0 3.5.3 3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / includes / fields / class-evf-field-payment-authorize-net.php
everest-forms / includes / fields Last commit date
class-evf-field-address.php 1 week ago class-evf-field-ai.php 1 year ago class-evf-field-captcha.php 1 month ago class-evf-field-checkbox.php 3 months ago class-evf-field-color.php 1 month ago class-evf-field-country.php 3 months ago class-evf-field-credit-card.php 1 month ago class-evf-field-date-time.php 1 month ago class-evf-field-divider.php 2 years ago class-evf-field-email.php 1 year ago class-evf-field-file-upload.php 1 year ago class-evf-field-first-name.php 1 year ago class-evf-field-hcaptcha.php 5 months ago class-evf-field-hidden.php 1 year ago class-evf-field-html.php 10 months ago class-evf-field-image-upload.php 1 year ago class-evf-field-last-name.php 1 year ago class-evf-field-likert.php 1 year ago class-evf-field-lookup.php 1 month ago class-evf-field-number.php 1 year ago class-evf-field-password.php 1 month ago class-evf-field-payment-authorize-net.php 1 month ago class-evf-field-payment-checkbox.php 1 month ago class-evf-field-payment-coupon.php 1 month ago class-evf-field-payment-gateway-selector.php 1 month ago class-evf-field-payment-quantity.php 1 month ago class-evf-field-payment-radio.php 1 month ago class-evf-field-payment-single.php 1 month ago class-evf-field-payment-square.php 2 years ago class-evf-field-payment-subscription-plan.php 1 month ago class-evf-field-payment-subtotal.php 1 month ago class-evf-field-payment-total.php 1 month ago class-evf-field-phone.php 1 year ago class-evf-field-privacy-policy.php 3 months ago class-evf-field-private-note.php 1 year ago class-evf-field-progress.php 1 month ago class-evf-field-radio.php 3 months ago class-evf-field-range-slider.php 1 month ago class-evf-field-rating.php 3 months ago class-evf-field-recaptcha.php 5 months ago class-evf-field-repeater.php 1 month ago class-evf-field-reset.php 1 month ago class-evf-field-scale-rating.php 1 year ago class-evf-field-select.php 1 year ago class-evf-field-signature.php 1 month ago class-evf-field-text.php 1 year ago class-evf-field-textarea.php 1 year ago class-evf-field-title.php 2 years ago class-evf-field-turnstile.php 5 months ago class-evf-field-url.php 1 year ago class-evf-field-wysiwyg.php 3 months ago class-evf-field-yes-no.php 1 year ago payment-amount-helpers.php 1 month ago
class-evf-field-payment-authorize-net.php
169 lines
1 <?php
2 /**
3 * Authorize.Net field
4 *
5 * @package EverestForms\Fields
6 * @since 1.9.9
7 */
8
9 defined( 'ABSPATH' ) || exit;
10
11 /**
12 * EVF_Field_Payment_Authorize_Net Class.
13 */
14 class EVF_Field_Payment_Authorize_Net extends EVF_Form_Fields {
15
16 /**
17 * Constructor.
18 */
19 public function __construct() {
20 $this->name = esc_html__( 'Authorize.Net', 'everest-forms' );
21 $this->type = 'authorize-net';
22 $this->icon = 'evf-icon evf-icon-payment';
23 $this->order = 230;
24 $this->group = 'payment';
25 $this->is_pro = true;
26 $this->plan = 'personal agency themegrill-agency';
27 $this->addon = 'everest-forms-authorize-net';
28 $this->links = array(
29 'image_id' => '',
30 'vedio_id' => 'a5EcKjwWD1A',
31 );
32 $this->settings = array(
33 'basic-options' => array(
34 'field_options' => array(
35 'label',
36 'meta',
37 'description',
38 'required',
39 'required_field_message_setting',
40 'required_field_message',
41 ),
42 ),
43 'advanced-options' => array(
44 'field_options' => array(
45 'card_number_placeholder',
46 'cvc_placeholder',
47 'label_hide',
48 'css',
49 ),
50 ),
51 );
52
53 parent::__construct();
54 }
55
56 /**
57 * Field preview inside the builder (ported from the Authorize.Net addon, minus
58 * its is_plugin_active() guard) so the locked Pro showcase is pixel-identical
59 * to the real field. The "Activate add-on" CTA lives in the locked settings
60 * panel, not on the canvas.
61 *
62 * @param array $field Field data and settings.
63 */
64 public function field_preview( $field ) {
65 $number_placeholder = ! empty( $field['card_number_placeholder'] ) ? esc_attr( $field['card_number_placeholder'] ) : '';
66 $cvc_placeholder = ! empty( $field['cvc_placeholder'] ) ? esc_attr( $field['cvc_placeholder'] ) : '';
67
68 // Label.
69 $this->field_preview_option( 'label', $field );
70 ?>
71 <div class="evf-field-row">
72 <div class="everest-forms-authorize-net-card-number">
73 <input type="text" placeholder="<?php echo esc_attr( $number_placeholder ); ?>" class="widefat" disabled>
74 <label class="everest-forms-sub-label"><?php esc_html_e( 'Card Number', 'everest-forms' ); ?></label>
75 </div>
76 </div>
77
78 <div class="evf-field-row clearfix">
79 <div class="everest-forms-authorize-net-expiration everest-forms-one-half">
80 <div class="everest-forms-authorize-net-expiration-month everest-forms-one-half">
81 <select class="widefat" disabled>
82 <option><?php esc_html_e( 'MM', 'everest-forms' ); ?></option>
83 </select>
84 </div>
85
86 <div class="everest-forms-authorize-net-expiration-year everest-forms-one-half last">
87 <select class="widefat" disabled>
88 <option><?php esc_html_e( 'YY', 'everest-forms' ); ?></option>
89 </select>
90 </div>
91
92 <label class="everest-forms-sub-label"><?php esc_html_e( 'Expiration', 'everest-forms' ); ?></label>
93 </div>
94
95 <div class="everest-forms-authorize-net-cvc everest-forms-one-half last">
96 <input type="text" placeholder="<?php echo esc_attr( $cvc_placeholder ); ?>" class="widefat" disabled>
97 <label class="everest-forms-sub-label"><?php esc_html_e( 'CVC', 'everest-forms' ); ?></label>
98 </div>
99 </div>
100 <?php
101 // Description.
102 $this->field_preview_option( 'description', $field );
103 }
104
105 /**
106 * Card Number Placeholder field option.
107 *
108 * @param array $field Field Data.
109 */
110 public function card_number_placeholder( $field ) {
111 $lbl = $this->field_element(
112 'label',
113 $field,
114 array(
115 'slug' => 'card_number_placeholder',
116 'value' => esc_html__( 'Card Number Placeholder Text', 'everest-forms' ),
117 'tooltip' => esc_html__( 'Enter text for the card number field placeholder.', 'everest-forms' ),
118 ),
119 false
120 );
121 $fld = $this->field_element(
122 'text',
123 $field,
124 array(
125 'slug' => 'card_number_placeholder',
126 'value' => ! empty( $field['card_number_placeholder'] ) ? esc_attr( $field['card_number_placeholder'] ) : '',
127 ),
128 false
129 );
130 $args = array(
131 'slug' => 'card_number_placeholder',
132 'content' => $lbl . $fld,
133 );
134 $this->field_element( 'row', $field, $args );
135 }
136
137 /**
138 * CVC Placeholder field option.
139 *
140 * @param array $field Field Data.
141 */
142 public function cvc_placeholder( $field ) {
143 $lbl = $this->field_element(
144 'label',
145 $field,
146 array(
147 'slug' => 'cvc_placeholder',
148 'value' => esc_html__( 'CVC Placeholder Text', 'everest-forms' ),
149 'tooltip' => esc_html__( 'Enter text for the CVC field placeholder.', 'everest-forms' ),
150 ),
151 false
152 );
153 $fld = $this->field_element(
154 'text',
155 $field,
156 array(
157 'slug' => 'cvc_placeholder',
158 'value' => ! empty( $field['cvc_placeholder'] ) ? esc_attr( $field['cvc_placeholder'] ) : '',
159 ),
160 false
161 );
162 $args = array(
163 'slug' => 'cvc_placeholder',
164 'content' => $lbl . $fld,
165 );
166 $this->field_element( 'row', $field, $args );
167 }
168 }
169