- #getId(); ?>
-
getCurrencySymbol() . number_format($payment->getAmount(), 2); ?>
-
getPaymentMethod();
if (empty($payment_method)) {
// Try direct property access
$payment_method = $payment->payment_method;
}
if (empty($payment_method)) {
// Try direct meta access
$payment_method = get_post_meta($payment->getId(), '_payment_method', true);
}
echo ucfirst($payment_method ?: __('Not specified', 'easy-invoice'));
?>
-
getStatus()); ?>
-
getPaymentDate())); ?>
-
getPaymentType()); ?>
getRecurringId()) : ?>
-
getRecurringId(); ?>
getParentPaymentId()) : ?>
getNotes()) : ?>
-
getNotes())); ?>
getGatewayResponse();
$gateway_response = null;
if ($gateway_response_raw) {
// Try to decode JSON if it's a string
if (is_string($gateway_response_raw)) {
$gateway_response = json_decode($gateway_response_raw, true);
} elseif (is_array($gateway_response_raw)) {
$gateway_response = $gateway_response_raw;
}
}
if ($gateway_response && is_array($gateway_response)) :
?>
$value) :
$loop++;
?>
-
' . esc_html(json_encode($value, JSON_PRETTY_PRINT)) . '';
} elseif (is_bool($value)) {
echo $value ? 'Yes' : 'No';
} elseif (is_null($value)) {
echo 'null';
} else {
echo esc_html($value);
}
?>