PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 6.2.2
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v6.2.2
6.2.14 6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 All 196 releases
fluentform / app / Views / receipt / payment_info.php

payment_info.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 6.2.2, at app/Views/receipt/payment_info.php

56 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 defined('ABSPATH') or die;
4
5 // phpcs:disable WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- Template variables in view files
6 ?>
7 <div class="ffp_payment_info">
8 <div class="ffp_payment_info_item ffp_payment_info_item_order_id">
9 <div class="ffp_item_heading"><?php esc_html_e('Order ID:', 'fluentform');?></div>
10 <div class="ffp_item_value">#<?php echo esc_html($submission->id); ?></div>
11 </div>
12 <div class="ffp_payment_info_item ffp_payment_info_item_date">
13 <div class="ffp_item_heading"><?php esc_html_e('Date:' ,'fluentform');?></div>
14 <div class="ffp_item_value"><?php echo esc_html(date(get_option( 'date_format' ), strtotime($submission->created_at))); ?></div>
15 </div>
16 <div class="ffp_payment_info_item ffp_payment_info_item_total">
17 <div class="ffp_item_heading"><?php esc_html_e('Total:','fluentform');?></div>
18 <div class="ffp_item_value"><?php echo fluentform_sanitize_html($totalPaid); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
19 </div>
20 <?php
21 $paymentMethod = $submission->payment_method;
22 if($paymentMethod): ?>
23 <div class="ffp_payment_info_item ffp_payment_info_item_payment_method">
24 <div class="ffp_item_heading"><?php esc_html_e('Payment Method:','fluentform');?></div>
25 <div class="ffp_item_value"><?php
26 $paymentMethod = apply_filters_deprecated(
27 'fluentform_payment_method_public_name_' . $paymentMethod,
28 [
29 $paymentMethod
30 ],
31 FLUENTFORM_FRAMEWORK_UPGRADE,
32 'fluentform/payment_method_public_name_' . $paymentMethod,
33 'Use fluentform/payment_method_public_name_' . $paymentMethod. ' instead of fluentform_payment_method_public_name_' . $paymentMethod
34 );
35 echo esc_html(ucfirst(
36 apply_filters(
37 'fluentform/payment_method_public_name_' . $paymentMethod,
38 $paymentMethod
39 )
40 )); ?></div>
41 </div>
42 <?php endif; ?>
43 <?php
44 if ($submission->payment_status):
45 $allStatus = \FluentForm\App\Modules\Payments\PaymentHelper::getPaymentStatuses();
46 if (isset($allStatus[$submission->payment_status])) {
47 $submission->payment_status = $allStatus[$submission->payment_status];
48 }
49 ?>
50 <div class="ffp_payment_info_item ffp_payment_info_item_payment_status">
51 <div class="ffp_item_heading"><?php esc_html_e('Payment Status:','fluentform');?></div>
52 <div class="ffp_item_value"><?php echo esc_html($submission->payment_status); ?></div>
53 </div>
54 <?php endif; ?>
55 </div>
56