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

  1. Open Billing > Clients. You see the Client list, with each client's Status, Services and Balance owed.
  2. Click Add client. The Add a client form opens.
    The Client list with five clients and the Add client button marked 2
  3. Type the client's name in Name, for example Grace Hopper.
  4. 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.
  5. Click Add client at the bottom of the form. You see "Grace Hopper was added." and the client's own page opens.
The Add a client form with Grace Hopper, her company Hopper Web Works and grace@example.net filled in, and the fields and the Add client button marked

To find a client and open their page

  1. Open Billing > Clients.
  2. Type part of a name, company or email in Name, company or email, for example lee.
  3. Click Show. The list shows only the clients that match. Click Clear filters to see everyone again.
  4. 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.
  5. 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.
Ann Lee's client page with her balance owed, her credit, the Create invoice, Add order, Add credit and Open ticket buttons, and the row of tabs from Summary to Referral marked 5

To change a client's details or status

  1. Open the client's page and click the Profile tab.
  2. Change what you need, such as the address or the Group (the client group).
  3. 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.
  4. Click Save changes. You see "The changes are saved."
The Profile tab of Ann Lee with her contact details, address, group and status

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.

  1. 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.
    The Services card of Ann Lee with a Starter service and a Standard service, the second one paid for by the panel account site1
  2. 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.
  3. Click Link account. You see "site2 is linked to this client." It is now listed under Panel accounts.
The Panel accounts card of Ann Lee listing site1, and the Link a panel account card with site2 typed in and the Link account button marked 3

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.

  1. Open the client's page and click the Credit tab. Credit held: shows their balance.
  2. Under Change, choose Add credit or Take credit away.
  3. Type the Amount in dollars and cents, such as 25 or 19.99.
  4. 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.
  5. Click Save. You see "$25.00 of credit was added." and a new line in the Credit history.
The Credit tab of Ann Lee holding $25.00 of credit, with the form to add or take away credit and the credit history

If something goes wrong

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

  1. Open Billing > Client groups. The groups you have are listed at the top, with how many Clients are in each.
  2. 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.
  3. If you like, type a one-line Description.
  4. Click Add group. You see "Agencies was added."
  5. 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.
The Add a group form of Client groups, for a new client group

If something goes wrong

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

  1. Open Billing > Custom client fields.
  2. In Add a field, type a Name, for example How they found us.
  3. 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.
  4. For a Choice field, type 2 to 20 Choices, one per line.
  5. Tick Required for new clients if every new client must have it filled in.
  6. Click Add field. The field now shows on every client's Profile tab.
The Add a field form with the name How they found us typed in

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

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

  1. Open Billing > Invoices and click Create invoice. The Create an invoice form opens.
  2. 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.
  3. 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 as 150. 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.
  4. 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.
  5. 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.
The Create an invoice form for Bruno Silva with one line, Website move from the old host at $150, and the client, the line and the two buttons marked 2, 3 and 5

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.

  1. Open Billing > Invoices and click the invoice's number, for example INV-000002.
  2. Scroll to Payments. Under Record a payment, type the Amount, for example 16.00.
  3. Under How it was paid, choose Bank transfer, Cash, Cheque or Other.
  4. 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.
  5. 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.
The Payments panel of invoice INV-000002 with a $5.00 cash payment listed and the Record a payment form filled in with $16.00 by bank transfer, reference BT-1103

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:

  1. Open the invoice. If the client holds credit, the Apply credit panel says "The client holds $25.00 of credit."
  2. Leave Amount to use as it is to pay as much as the credit allows, or type a smaller amount.
  3. Click Apply credit. You see "$16.00 of credit was put towards the invoice."
The Apply credit panel of invoice INV-000002 saying Ann Lee holds $25.00 of credit, with the amount to use and the Apply credit button

To cancel an invoice

  1. Open the invoice and click Cancel invoice. The panel asks "Cancel this invoice?".
  2. If you like, type Why (optional).
  3. 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.

The top of invoice INV-000002 with the question Cancel this invoice?, the Why (optional) box and the Cancel invoice and Keep invoice buttons

To refund a payment

  1. Open the invoice and scroll to Payments.
  2. Click Refund on the payment's row.
  3. Type the Amount to give back (the form says how much can be given back) and, in Why, one line for your records.
  4. 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.

  1. Open the unpaid invoice and go to Charge a saved method.
  2. Choose the Card or account.
  3. Click the button with the amount, such as Charge $16.00, then Charge now to confirm.
  4. 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

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

  1. Open Billing > Transactions.
  2. 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.
  3. Click Show. The table lists the matching payments with their Amount, Status and Reference.
  4. 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.
The Transaction list with three payments by Ann Lee and Bruno Silva, their methods, amounts and the status Went through

If something goes wrong

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

  1. Open Billing > Invoices and click a paid invoice, for example INV-000001.
  2. 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.
  3. Type the Amount, for example 5.00. The form says how much is left to take back.
  4. In Why, type one line, for example Mail was down for two days in September. It is printed on the credit note.
  5. 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.
The Credit notes panel of the paid invoice INV-000001 with $5.00 to give back as credit and the reason typed in

If something goes wrong

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

  1. Open Billing > Quotes and click Create quote.
  2. Choose the Client and type a Subject, for example Shop for Lee Design Studio. The client sees it.
  3. Fill in the lines as on an invoice: Description, Quantity and Unit price.
  4. If you like, set Valid until. Left empty, it is your usual number of days from when you send it.
  5. Click Save draft. The draft quote opens.
  6. 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.
The Create a quote form for Ann Lee, subject Shop for Lee Design Studio, with one line for an online shop set-up at $400

To record the client's answer and invoice it

  1. Open the sent quote from Billing > Quotes.
  2. Under Record the answer, choose Accepted the quote or Declined the quote.
  3. In How they said it, type one line, for example By email on 3 November.
  4. Click Record answer. For an accepted quote you see "The quote is accepted. Make its invoice below."
  5. 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.
The Record the answer panel of quote Q-000001 with Accepted the quote chosen and By email on 3 November typed in

If something goes wrong

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

  1. Open Billing > Payment gateways. Each gateway is listed with On or Off beside it.
  2. Tick a gateway to turn it on, or untick it to turn it off.
  3. Click Save changes. You see "The gateways are saved."
  4. 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.
The Gateways card listing PayPal and Stripe, both Off, and the Test gateway (takes no money) ticked and On, marked 2, with its warning and the Save changes button

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.

  1. In your Stripe account, open Developers > API keys and copy the Secret key (sk_test_...).
  2. In the panel, open Billing > Payment gateways and find the Stripe keys card.
  3. Paste the key in Secret key. Leave API address empty.
  4. 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."
  5. 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.
    The Stripe keys card with the Secret key, Webhook signing secret and API address boxes, the Save Stripe keys button, and the webhook address with its events
  6. 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_).
  7. 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."
  8. 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.

  1. In your PayPal developer account, open your app and copy its Client ID and Secret.
  2. In the PayPal keys card, leave Mode on Sandbox (tests only) for now. Sandbox is PayPal's test system and takes no real money.
  3. Paste the Client ID and Secret, and click Save PayPal keys.
  4. 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.
  5. Paste it in Webhook ID and click Save PayPal keys. The card says every key is set. Turn PayPal on above.
  6. 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