This invoice link isn\'t working

It may have been mistyped or replaced. Ask whoever sent it for a new link.

'; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/footer.php'; exit(); } $invoice_id = intval($invoice['invoice_id']); $client_id = intval($invoice['client_id']); $number = billingNumber('invoice', $invoice); $status = (string) $invoice['invoice_status']; $currency = (string) $invoice['invoice_currency_code']; $money = function ($amount) use ($currency) { return escapeHtml(billingMoney($amount, $currency)); }; billingGuestViewed('invoice', $invoice); $items = billingItems('invoice', $invoice_id); $totals = billingTotals('invoice', $invoice, $items); $payments = invoicePayments($invoice_id); $state = invoiceState($invoice, invoicePaid($invoice_id)); $company = billingCompany(); $open_invoices = billingClientOpenInvoices($client_id); $open_total = 0; foreach ($open_invoices as $open) { $open_total += floatval($open['invoice_amount']) - floatval($open['paid']); } $query_key = rawurlencode($url_key); // Paying online - through Stripe, under its limit, when there is something to pay $stripe = mysqli_fetch_assoc(mysqli_query($mysqli, "SELECT payment_provider_id, payment_provider_threshold FROM payment_providers WHERE payment_provider_active = 1 AND payment_provider_name = 'Stripe' LIMIT 1")); $pay_url = ''; if ($stripe && invoiceCanPay($invoice, $state) && (floatval($stripe['payment_provider_threshold']) == 0 || floatval($stripe['payment_provider_threshold']) > floatval($invoice['invoice_amount']))) { $stripe_customer = mysqli_fetch_row(mysqli_query($mysqli, "SELECT payment_provider_client FROM client_payment_provider WHERE client_id = $client_id AND payment_provider_id = " . intval($stripe['payment_provider_id']) . " LIMIT 1")); $pay_url = ($stripe_customer ? 'guest_pay_invoice_stripe.php' : 'guest_pay_setup_stripe_customer.php') . "?invoice_id=$invoice_id&url_key=$query_key"; } // The card fee on paying by card, when the client pays one (functions/billing_pay.php) $card_fee = $pay_url ? billingCardFeeCents((int) round($state['balance'] * 100), billingCardFeeFor($client_id)) / 100 : 0; $paper = [ 'type' => 'invoice', 'row' => $invoice, 'items' => $items, 'totals' => $totals, 'paid' => $state['paid'], 'balance' => $state['balance'], 'logo_url' => $company['logo_url'], ]; ?>
Paid in full
Nothing is owed on this invoice.
Amount due
Due ' . escapeHtml($invoice['invoice_due']) . '' ?>
Pay Now
Securely, by card 0 ? ' - plus a ' . $money($card_fee) . ' card fee' : '' ?>

Payments

Your account

Questions about this invoice? Contact at "> or .