| 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('Transaction #', 'fluentform');?></div> |
| 10 |
<div class="ffp_item_value">#<?php echo esc_html($transaction->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($transaction->created_at))); ?></div> |
| 15 |
</div> |
| 16 |
<?php if($transaction->payment_method): ?> |
| 17 |
<div class="ffp_payment_info_item ffp_payment_info_item_payment_method"> |
| 18 |
<div class="ffp_item_heading"><?php esc_html_e('Payment Method:','fluentform');?></div> |
| 19 |
<div class="ffp_item_value"><?php |
| 20 |
$method = $transaction->payment_method; |
| 21 |
$method = apply_filters_deprecated( |
| 22 |
'fluentform_payment_method_public_name_' . $method, |
| 23 |
[ |
| 24 |
$method |
| 25 |
], |
| 26 |
FLUENTFORM_FRAMEWORK_UPGRADE, |
| 27 |
'fluentform/payment_method_public_name_' . $method, |
| 28 |
'Use fluentform/payment_method_public_name_' . $method . ' instead of fluentform_payment_method_public_name_' . $method |
| 29 |
); |
| 30 |
echo esc_html(ucfirst( |
| 31 |
apply_filters( |
| 32 |
'fluentform/payment_method_public_name_' . $method, |
| 33 |
$method |
| 34 |
) |
| 35 |
)); ?></div> |
| 36 |
</div> |
| 37 |
<?php endif; ?> |
| 38 |
<?php if($transaction->status): ?> |
| 39 |
<div class="ffp_payment_info_item ffp_payment_info_item_payment_status"> |
| 40 |
<div class="ffp_item_heading"><?php esc_html_e('Payment Status:','fluentform');?></div> |
| 41 |
<div class="ffp_item_value"><?php echo esc_html(ucfirst($transaction->status)); ?></div> |
| 42 |
</div> |
| 43 |
<?php endif; ?> |
| 44 |
</div> |
| 45 |
|