Skip to content

Pilots can pay their account balance by card from My Billing. The money goes straight into your company’s own Stripe account, and Flylogs adds the payment to the pilot’s account as soon as Stripe confirms it. Nobody has to record the payment by hand.

Card details are entered in Stripe’s own payment form and never pass through Flylogs.

  1. If your company does not have a Stripe account yet, create one and add the bank account Stripe pays out to.
  2. In Stripe, open Developers → API keys and copy the Publishable key (pk_live_…) and the Secret key (sk_live_…).
  3. In Flylogs, go to Company → Settings → Billing, check that Enable billing is on, and scroll to Stripe Payments.
  4. Paste the publishable key into Public key and the secret key into Secret key, then click Save.
Stripe Payments section of the Billing settings with the public key filled in and a saved secret key shown as dots

Company → Settings → Billing → Stripe Payments, with both keys saved.

When you save, Flylogs checks the keys with Stripe. The save is refused, with a message saying why, if:

  • a field holds something that is not a Stripe key (the public key must start with pk_, the secret key with sk_ or rk_),
  • one key is a live key and the other a test key,
  • Stripe does not accept the secret key, for example because it has been rolled or deleted.

The secret key is stored encrypted and is never shown again. Afterwards the field shows dots and the message A secret key is saved. Paste a new key to replace it, or clear the field and save to remove it. Removing either key turns online payments off.

A key that worked when you saved it can stop working later: you rolled it or deleted it in Stripe, it reached the expiry date you gave it when rolling, or a restricted key lost its Checkout Sessions permission. From then on pilots cannot pay online and paid sessions are no longer picked up by the hourly check.

Flylogs notices the next time it talks to Stripe (the hourly check, or a pilot pressing Pay online). The Company Administrator and the Financial Manager then get one urgent inbox message, also sent by email, titled Stripe rejected your secret key, with a link to the billing settings. It is sent once per key, not every hour. The Secret key field shows the warning in red until you paste a new key.

Stripe Payments section with a saved secret key and a red warning that Stripe rejected it

The warning under the Secret key field when Stripe no longer accepts the saved key.

To fix it, copy a current secret key from Developers → API keys in Stripe, paste it into Secret key and click Save. Payments pilots made in the last 48 hours are recorded at the next hourly check.

Instead of the secret key you can use a restricted key (rk_live_…) that can only do what Flylogs needs. Give it Write access to Checkout Sessions and leave everything else as None.

To try the whole flow without real money, use the keys from Stripe’s test mode (pk_test_… and sk_test_…) and pay with the card number 4242 4242 4242 4242, any future expiry date and any CVC. When you are done, replace them with your live keys.

Once the keys are saved, every pilot whose own billing is enabled sees a Pay online button under their account balance in My Billing.

My Billing page with a negative account balance and a Pay online button under it

My Billing with the Pay online button.

Pilots can also reach the same window from a message: the reminder of a recurring charge links to the payment window, and its receipt email has a Pay now button that opens it with what they owe already filled in. These only appear when your company takes card payments.

  1. The pilot clicks Pay online. The amount starts as what they owe. They can change it, for example to pay part of it or to add credit for future flights.
Pay by card window with the amount to pay filled in and a Pay button

Choosing the amount.

  1. They click Pay and enter their card in Stripe’s form, which opens in the same window. Cards and the wallets built on them (Apple Pay, Google Pay, Link) are accepted.
Stripe card form inside the Pay by card window

Stripe's card form (shown here in test mode).

  1. When the payment goes through, the window closes and the balance updates straight away.
Confirmation banner Payment received above the updated account balance

Payment received and added to the balance.

The payment appears in the pilot’s transactions as Stripe payment, with a bill number and receipt, like a payment you record yourself. It credits exactly the amount charged: no VAT is added on top. The pilot always gets the receipt by email as confirmation of the payment. The Company Administrator and the Financial Manager get an inbox message for every payment received.

If a pilot pays and closes the page before coming back to Flylogs, the payment is still recorded: Flylogs checks your Stripe account every hour and adds any paid balance payment it has not recorded yet.

  • Pilots and students whose billing is enabled on their pilot profile. Billing must also be enabled for the company.
  • The button is hidden when the company has no valid pair of keys, when billing is off, and on the Free plan.
  • External auditors cannot pay online.

A pilot can only pay into their own account, and only in the company’s currency.

Refunds and disputes are handled in your Stripe dashboard. Flylogs does not reverse the payment for you: if you refund a pilot, add a matching negative transaction to their account in Flylogs.