@php
// Default to the invoice's formatted total
$payAmount = $invoice->formattedTotal();
// Calculate final payable amount after credit deduction using new method
$creditAmount = $remainingCredit > 0 ? min($remainingCredit, $total) : 0;
$finalPayableAmount = $invoice->finalPayableAmount($creditAmount);
$payAmount = $invoice->formatAmount($finalPayableAmount);
@endphp
{{ t('razorpay_supported_methods') }}
UPI
Cards
Net
Banking
Wallets