$row) { $cents = (int) round((floatval($row['invoice_amount']) - floatval($row['paid'])) * 100); $open[$i]['cents'] = $cents; $currency = $currency ?: strtoupper((string) $row['invoice_currency_code']); // One payment can carry so many invoices - the oldest are ticked first if ($select === null ? count($ticked) < BILLING_PAY_MAX_INVOICES : in_array(intval($row['invoice_id']), $select, true)) { $ticked[intval($row['invoice_id'])] = true; $total_cents += $cents; } } $limit_cents = $provider ? (int) round(floatval($provider['payment_provider_threshold']) * 100) : 0; // The card fee, worked out again by js/portal.js as the ticks change - in hundredths of a percent and cents $fee_rates = $provider ? billingCardFeeFor($session_client_id) : null; $fee_cents = billingCardFeeCents($total_cents, $fee_rates); $locale = str_replace('_', '-', (string) ($session_company_locale ?: 'en_US')); $pay_token = bin2hex(random_bytes(16)); ?>

Pay invoices

Tick what to pay - it goes through as one card payment.

'Card payments are not set up', 'text' => 'To pay, use the payment details on each invoice.', 'icon' => 'fa-credit-card', 'filtered' => false, 'actions' => [['label' => 'Invoices to pay', 'href' => 'invoices.php?tab=open', 'icon' => 'fa-file-invoice-dollar']]]) ?>
'Nothing to pay', 'text' => 'You are all paid up - thank you.', 'icon' => 'fa-check', 'filtered' => false, 'actions' => [['label' => 'Your payments', 'href' => 'payments.php', 'icon' => 'fa-receipt']]]) ?>
data-pay-fee-percent="" data-pay-fee-fixed="">

Still to pay

>

Pay with

Your cards
$card) { $expired = $card['card']['expired']; ?>
Card fee
Total
0 && $total_cents >= $limit_cents ? '' : ' hidden' ?>> Card payments are limited to under at a time - untick some invoices, or pay another way.

Paying by card adds a card fee: . It goes on each invoice as a line.

Paid securely through Stripe - your card details never reach us.