| 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 |
|