@php
$money = function ($amount, $currency) {
$currency = strtoupper((string) $currency);
$value = number_format((float) $amount, 2);
return $currency === 'USD' ? '$'.$value.' USD' : $currency.' '.$value;
};
@endphp
Secure Payment
Redirecting to PayFast
Invoice #{{ $invoice->whmcs_invoice_id ?: $invoice->invoice_number }}
{{ strtoupper($payment['mode'] ?? 'sandbox') }}
{{ $money($payment['payfast_amount'] ?? $invoice->total, $payment['payfast_currency'] ?? $invoice->currency) }}
@if (($payment['invoice_currency'] ?? '') !== ($payment['payfast_currency'] ?? ''))
Invoice total: {{ $money($payment['invoice_total'] ?? $invoice->total, $payment['invoice_currency'] ?? $invoice->currency) }}
Converted using the current billing rate: 1 {{ $payment['invoice_currency'] }} = {{ number_format((float) ($payment['conversion_rate'] ?? 0), 5) }} PKR
@endif
Next Step
Opening payment page
Please do not refresh this page while the payment form is being submitted.
If the page does not open automatically, click the button above.