Billing and the store
Billing
What this does: the Billing group holds the people you bill and the money: your clients, their invoices, the payments you take and give back, credit notes, quotes, and the payment gateways your clients pay through.
When you need it: every day you sell hosting. Most of the work starts on Clients: open a client and everything about them is on their page.
The pictures on this page use the same made-up business throughout: clients such as Ann Lee of Lee Design Studio (ann@example.com) and Bruno Silva, the plans Starter, Standard and Business, and invoices numbered from INV-000001. All amounts are in US dollars, the only currency billing uses.
Clients
What this does: lists the people and companies you bill. You can find a client, add one, and open a client to see everything about them: their services, invoices, payments, credit, tickets and notes.
When you need it: when a new client signs up with you by phone or email, when a client asks about their bill, or when you want to see what someone owes.
Where: Billing > Clients
Clients who order in your store are added by themselves when they confirm their email address. You only add a client by hand when they come to you another way.
To add a client
- Open Billing > Clients. You see the Client list, with each client's Status, Services and Balance owed.
- Click Add client. The Add a client form opens.

- Type the client's name in Name, for example
Grace Hopper. - Type their email address in Email, for example
grace@example.net. Only the name and email are needed now; you can fill in the rest later. - Click Add client at the bottom of the form. You see "Grace Hopper was added." and the client's own page opens.

To find a client and open their page
- Open Billing > Clients.
- Type part of a name, company or email in Name, company or email, for example
lee. - Click Show. The list shows only the clients that match. Click Clear filters to see everyone again.
- Click the client's name. Their page opens. Across the top are buttons to Create invoice, Add order, Add credit and Open ticket for them.
- Below the buttons is a row of tabs. Click a tab to see one part of their record: Summary, Profile, Contacts, Services, Domains, Invoices, Quotes, Transactions, Credit, Tickets, Payment methods, Notes and Referral.

To change a client's details or status
- Open the client's page and click the Profile tab.
- Change what you need, such as the address or the Group (the client group).
- Under Status, choose Active, Inactive or Closed. A closed client keeps their invoices and history, and their email address stays taken, so nobody else can sign up with it.
- Click Save changes. You see "The changes are saved."

To link a hosting account to a client
A client's service is linked to the hosting account it pays for. When you accept an order the panel can make the account by itself. If the account already existed, link it by hand.
- Open the client's page and click the Services tab. You see the Services card with their services, then Panel accounts, then Link a panel account.

- In Link a panel account, type the account's username in Username of the account, as it is on the Accounts page, for example
site2. - Click Link account. You see "site2 is linked to this client." It is now listed under Panel accounts.

On the Services card, each active service has Suspend and End buttons. Suspending a service suspends its hosting account too; a suspended service then shows Put back in place of Suspend. Ending a service removes its account, and cannot be undone.
To add or take away credit
Credit is money you hold for the client. It is not used by itself: to pay an invoice with it, see To use a client's credit on an invoice below. The client can also use it with Use my credit in their client area.
- Open the client's page and click the Credit tab. Credit held: shows their balance.
- Under Change, choose Add credit or Take credit away.
- Type the Amount in dollars and cents, such as
25or19.99. - In Note for your staff, say why in one line, for example
Goodwill for the outage on 3 October. The client does not see it. - Click Save. You see "$25.00 of credit was added." and a new line in the Credit history.

If something goes wrong
- If you see "Enter an email address, such as ann@example.com.", the email box is empty or not a full address. Type it again.
- If the email box turns red after you click Add client, another client already uses that address, in any mix of capitals. Search for it in the list: it may be the same person.
- If you see "This client is closed, so no panel account can be linked to them.", open the Profile tab, set Status to Active, and save first.
- If you see "Say why in the note.", fill in Note for your staff. Every credit change needs a reason.
Client groups
What this does: lets you sort clients into named sets, called client groups, such as "Agencies" or "Resellers". A client is in one group at most. The client list can show one group at a time.
When you need it: when you want to find a kind of client quickly, or send a mass message to one group only.
Where: Billing > Client groups
To add a client group
- Open Billing > Client groups. The groups you have are listed at the top, with how many Clients are in each.
- In Add a group on this page, type a Name of up to 60 characters, such as
Agencies. This is a client group: it is not the same as a product group or a server group. - If you like, type a one-line Description.
- Click Add group. You see "Agencies was added."
- To put a client in the client group, open the client's page, click Profile, choose the group under Group and click Save changes. To put every new client in one group by itself, use Group for new clients in Billing settings.

If something goes wrong
- If the panel refuses the name, a group with that name already exists. Choose another name.
- Removing a group keeps its clients. They are simply in no group afterwards.
Custom client fields
What this does: adds extra boxes to every client's record, such as "How they found us" or a customer number from your old system. The boxes show on the client's Profile tab.
When you need it: when you need to keep a detail for each client that the panel does not ask for already.
Where: Billing > Custom client fields
To add a custom field
- Open Billing > Custom client fields.
- In Add a field, type a Name, for example
How they found us. - Choose its Kind: Text (one line of up to 200 characters), Choice (one of a list) or Yes or no (a tick box). The kind cannot change later.
- For a Choice field, type 2 to 20 Choices, one per line.
- Tick Required for new clients if every new client must have it filled in.
- Click Add field. The field now shows on every client's Profile tab.

A custom field is only kept for your records. Billing does not read it: for example, a field named "VAT number" is not used by the EU reverse charge in Tax rules.
If something goes wrong
- Removing a field removes every client's value of it. If you only want to stop asking for it, untick Required for new clients instead.
Invoices
What this does: lists every invoice, and lets you make a new one, issue it, download it as a PDF, record a payment, use the client's credit, refund money and cancel an invoice.
When you need it: when you bill a client for something by hand, when a client pays you by bank transfer or cash, or when you check who still owes you.
Where: Billing > Invoices
Renewal invoices for services are made by the daily run. The Generate due invoices button makes them at once: it makes and issues the renewal invoices of services due in the next 14 days. The button always looks 14 days ahead, whatever Renewal invoices, days ahead says in Automation; that setting is for the daily run only. A period is never billed twice.
To create an invoice
- Open Billing > Invoices and click Create invoice. The Create an invoice form opens.
- Under Client, choose who to bill. Only active clients are in the list. To find one quickly, type part of their name in Find a client.
- On the first line, type what it is for in Description, for example
Website move from the old host, then the Quantity and the Unit price in dollars, such as150. A line with a minus price, such as-15, is a discount. Tick No tax on a line that is free of tax. Click Add line for more lines. - If you like, type a Note on the invoice for the client, and pick a Due day. Left empty, the due day is your usual number of days from Billing settings.
- Click Save as draft to keep working on it later, or Issue invoice to make it final. An issued invoice gets its number, such as
INV-000005, and its lines cannot change any more. The client sees it in their client area at once, and gets it by email in the next sending round, if sending is on.

To record a payment you took yourself
Use this for money that did not come through a payment gateway, such as a bank transfer, cash or a cheque.
- Open Billing > Invoices and click the invoice's number, for example
INV-000002. - Scroll to Payments. Under Record a payment, type the Amount, for example
16.00. - Under How it was paid, choose Bank transfer, Cash, Cheque or Other.
- In Reference, type the bank's transaction number or similar, for example
BT-1103. The same reference cannot be recorded twice, so a payment is never counted twice. - Click Record payment. You see "A payment of $16.00 is recorded." If the client paid more than they owed, the rest goes to their credit.

To use a client's credit on an invoice
Credit is never used by itself, so an unpaid invoice can stay overdue while the client holds credit, as in the pictures here. Use it like this:
- Open the invoice. If the client holds credit, the Apply credit panel says "The client holds $25.00 of credit."
- Leave Amount to use as it is to pay as much as the credit allows, or type a smaller amount.
- Click Apply credit. You see "$16.00 of credit was put towards the invoice."

To cancel an invoice
- Open the invoice and click Cancel invoice. The panel asks "Cancel this invoice?".
- If you like, type Why (optional).
- Click Cancel invoice to confirm, or Keep invoice to leave it. The invoice keeps its number and lines as a record. Anything already paid on it goes to the client's credit.
A draft has no number yet, so it is removed with Remove draft instead.

To refund a payment
- Open the invoice and scroll to Payments.
- Click Refund on the payment's row.
- Type the Amount to give back (the form says how much can be given back) and, in Why, one line for your records.
- Click Refund to confirm, or Don't refund. You see, for example, "$5.00 was refunded." Money a gateway took is given back through that gateway; money you took by hand is recorded as paid back by hand, so you send it back yourself.
To give back part of a paid invoice as credit instead, make a credit note.
To charge a client's saved card
If the client saved a card in their client area, you can take what they owe from it.
- Open the unpaid invoice and go to Charge a saved method.
- Choose the Card or account.
- Click the button with the amount, such as Charge $16.00, then Charge now to confirm.
- You see "$16.00 was charged and the invoice is paid.", or why the charge did not go through.
The picture under To record a payment you took yourself shows the Refund button and the Charge a saved method card.
If something goes wrong
- If you see "Only active clients can be billed. There is none yet.", add a client first, or set a client's Status to Active on their Profile tab.
- If you see "Line 1: enter the unit price in dollars and cents, such as 15 or -2.50.", the price has letters or too many decimals in it. Type a plain amount.
- If you see "Add at least one line before issuing.", the invoice is empty. Add a line with a description, a quantity and a price.
- If a reference box turns red when you record a payment, that reference is already recorded. Check Transactions: the payment may be in already.
Transactions
What this does: lists every payment and refund, newest first, whether you recorded it by hand or a payment gateway took it. Each row names its client and invoice. A failed payment shows the gateway's reason beside its reference.
When you need it: when a client says they paid and you want to check, or when you match your bank statement against your billing.
Where: Billing > Transactions
To find a payment
- Open Billing > Transactions.
- Narrow the list if you like: choose a Kind (Payment or Refund), a Status (such as Went through or Failed), a Gateway, or a Client.
- Click Show. The table lists the matching payments with their Amount, Status and Reference.
- Click the invoice in a row, for example Invoice 2, to open it. The list names each invoice by the panel's own record number. That is not always its invoice number, such as
INV-000002, which you see at the top once it opens.

If something goes wrong
- If a payment shows Waiting, the gateway has not yet said how it went. It changes by itself when the gateway's message arrives. If it stays waiting for a day, look the payment up in the gateway's own dashboard.
- If a payment shows Failed, the reason from the gateway is in the Reference column, such as a declined card. Ask the client to pay again or use another card.
Credit notes
What this does: a credit note is a numbered record that you took money back from a paid invoice. The money goes either to the client's credit, or is marked as paid back to them by hand. This page lists every credit note. You make one on the paid invoice itself.
When you need it: when you give a client part of their money back, for example for a service that was down.
Where: Billing > Credit notes (the list); the invoice's own page (to make one)
To make a credit note
- Open Billing > Invoices and click a paid invoice, for example
INV-000001. - Scroll to Credit notes. Under Give it back as, choose Credit the client can spend on invoices or Money you paid back outside the panel.
- Type the Amount, for example
5.00. The form says how much is left to take back. - In Why, type one line, for example
Mail was down for two days in September. It is printed on the credit note. - Click Make credit note, then click Make credit note again to confirm. You see that the credit note is made, with its number (such as
CN-000001), and that the amount is in the client's credit. A credit note never changes afterwards.

If something goes wrong
- If you see "Say why the money is taken back.", fill in Why.
- If an invoice has no Credit notes panel, it is not paid. On an unpaid invoice, cancel it or change the amount instead.
Quotes
What this does: a quote is a price offer you send a client before they agree to buy, such as for building a website. A draft quote can change. Once you send it, it gets a number and is fixed. When the client says yes, you turn it into an invoice with one click.
When you need it: for work that is not one of your plans, or for a big client who wants a price in writing first.
Where: Billing > Quotes
To create and send a quote
- Open Billing > Quotes and click Create quote.
- Choose the Client and type a Subject, for example
Shop for Lee Design Studio. The client sees it. - Fill in the lines as on an invoice: Description, Quantity and Unit price.
- If you like, set Valid until. Left empty, it is your usual number of days from when you send it.
- Click Save draft. The draft quote opens.
- Click Send quote, then Send quote again to confirm. It gets its number, such as
Q-000004. If sending is on in Message templates, the client gets it by email in the next sending round.

To record the client's answer and invoice it
- Open the sent quote from Billing > Quotes.
- Under Record the answer, choose Accepted the quote or Declined the quote.
- In How they said it, type one line, for example
By email on 3 November. - Click Record answer. For an accepted quote you see "The quote is accepted. Make its invoice below."
- Under Make invoice, tick Issue the invoice at once if you want it issued now, and click Make invoice. You see "The quote is invoiced as INV-000005." A quote is invoiced once only.

If something goes wrong
- If you see "Say how the client gave their answer.", fill in How they said it.
- If a quote shows Expired, its Valid until day passed with no answer. Make a new quote.
Payment gateways
What this does: turns payment gateways on and off. A gateway takes the card or PayPal payment on its own page and tells the panel how it went. Only the gateways ticked here are offered to clients at checkout.
When you need it: before you let clients pay online. Money you take yourself, such as a bank transfer, needs no gateway: you record it by hand.
Where: Billing > Payment gateways
freePanel works with Stripe and PayPal. It also has a Test gateway (takes no money) for trying the whole flow before you go live. All three are listed on the page from the start, each Off. Stripe and PayPal cannot be turned on until their keys are saved in their keys cards (see the next section): if you tick one before that, saving refuses and names the missing key.
To turn a gateway on or off
- Open Billing > Payment gateways. Each gateway is listed with On or Off beside it.
- Tick a gateway to turn it on, or untick it to turn it off.
- Click Save changes. You see "The gateways are saved."
- If you turned one off, the panel asks "Turn off Stripe? Its checkouts and saved methods stop working until you turn it on again." Click Turn off to go ahead, or Keep it on.

Connecting Stripe
Each gateway has its own keys card on Billing > Payment gateways, below the list: Stripe keys and PayPal keys. You copy a few keys from your Stripe or PayPal account into it, then turn the gateway on.
Two words first. A key is a long password Stripe or PayPal gives you, so the panel can take payments in your name. A webhook is a web address on your server that the gateway calls to say a payment went through.
Stripe gives you two sets of keys: test keys (starting sk_test_), which take no real money, and live keys (starting sk_live_). Do all the steps below with your test keys first, pay an invoice with Stripe's test card, then do them again with your live keys.
- In your Stripe account, open Developers > API keys and copy the Secret key (
sk_test_...). - In the panel, open Billing > Payment gateways and find the Stripe keys card.
- Paste the key in Secret key. Leave API address empty.
- Click Save Stripe keys. You see "The Stripe keys are saved." The card now says "Still needed before it can be turned on: Webhook signing secret."
- Under Webhook, the card shows your webhook address and the events to send. Copy the address. It is your admin panel's address on port 7443, for example
https://server.example.com:7443/api/v1/billing/gateways/stripe/notice.
- In Stripe, open Developers > Webhooks and add an endpoint. Paste the address, choose the events the card lists, and save. Then copy the endpoint's Signing secret (it starts with
whsec_). - Back in the Stripe keys card, paste it in Webhook signing secret and click Save Stripe keys. The card now says "Every key is set: the gateway can be turned on above."
- Turn Stripe on with To turn a gateway on or off, above.
A saved key is never shown again. To keep it, leave its box empty when you save; to replace it, type the new one.
Connecting PayPal
PayPal works the same way, in the PayPal keys card.
- In your PayPal developer account, open your app and copy its Client ID and Secret.
- In the PayPal keys card, leave Mode on Sandbox (tests only) for now. Sandbox is PayPal's test system and takes no real money.
- Paste the Client ID and Secret, and click Save PayPal keys.
- Under Webhook, copy the address. In your PayPal app, add a webhook with that address and the events the card lists. Copy the webhook's ID.
- Paste it in Webhook ID and click Save PayPal keys. The card says every key is set. Turn PayPal on above.
- When you are ready to take real money, choose Live (real money) in Mode, paste your live app's Client ID, Secret and Webhook ID, and save.
If something goes wrong
- If the card says "Still needed before it can be turned on", it names the box that is still empty. Fill it in and save.
- If saving the gateways says a setting is missing, the gateway's keys card is not complete yet. See the card for what is missing.
- If payments stay Waiting, the gateway's messages are not reaching your server. Check that the address in the gateway's webhook settings is exactly the one the card shows. It uses port 7443, so that port must be open to the internet in your server's firewall. To test it, open
https://server.example.com:7443on a phone using mobile data, not your own network: if the sign-in page opens, the gateway can reach your server too.