Skip to content

Your Own Stripe Key

Pro and Premium, add-on in LiteOn Lite, you can add online payment as an add-on.

For businesses miraTEQ created for you in miraCMS: connect your own Stripe account in the panel, with a restricted key and a webhook

With your own Stripe account you sell vouchers online, and if you want, guests pay right when they book. The money goes straight to your account. miraTEQ takes no fee per sale and cannot reach your payouts. Stripe’s own fees are between you and Stripe.

Only you enter the key, with your own login. miraTEQ never asks you for it, and when miraTEQ opens your panel this card is not there. Do not send the key to anyone.

Open Business in the sidebar. The card Your own Stripe account is there. Open the account itself first on stripe.com, in the country of your business, with ID and a bank account for payouts.

If the card shows a single sentence instead of instructions, something else applies to you:

Sentence on the card What it means
“Online vouchers come with Booking Pro. To upgrade, write to contact@mirateq.com.” Your plan includes neither vouchers nor payment
“Stripe does not offer accounts in your country, so online payment is not possible there.” It does not work without a Stripe account
“Your business already charges through a connected Stripe account. You do not need a second one.” Chapter 25 applies. Nothing to do here
“miraTEQ set up your Stripe account for you. Changes go through us.” Chapter 25 applies. Write to us if something should change

If you do not have the card at all, miraTEQ set up your business another way. Then 25.6 applies.

  1. In the Stripe Dashboard, open the API keys under Developers, dashboard.stripe.com/apikeys.
  2. Choose “Create restricted key” and name it miraBOOK.
  3. Set these two permissions and leave all others on None:
    • Checkout Sessions: Write
    • Refunds: Write
  4. Add “Webhook Endpoints: Write”. The system then sets up the webhook itself (30.3).
  5. Create the key and copy it. It starts with rk_live_, and Stripe shows it only once.
  6. Paste it in the panel under Restricted key and press “Check and save”.

The system now asks Stripe whether the key works. This creates a payment page in your account that is closed straight away. After that the key is stored encrypted on the server and never shown again.

If it does not work, the panel says why, and nothing is saved:

Message What to do
“This is the publishable key (pk_). …” You copied the wrong one. You need the restricted one (rk_)
“This is an unrestricted key (sk_) …” It can do everything, payouts included. Create a restricted one
“This is not a Stripe key. It starts with rk_live_.” Copy it again
“This key does not match this business’s mode (test or live).” A real business needs a key starting with rk_live_, not a test key
“Stripe does not know this key: deleted, expired or mistyped.” Copy it again or create a new one
“The key lacks the permission …” Set that permission in Stripe. The key stays the same
“Stripe does not allow a payment page: … Usually the account setup is not finished yet.” Finish the setup at Stripe, then try again
“Too many attempts. Please try again in an hour.” Wait
“The key cannot be stored securely right now. …” Contact miraTEQ. Nothing was changed at Stripe

If the key may do more than it needs, such as payouts or customer data, it is saved anyway. The card then says “This key may also use … The system does not need that, so the permission should be on None.” Set it back in Stripe.

Through the webhook Stripe reports every payment to the system. Without it vouchers stay off, because not every guest returns to the page after paying. Paid, but no voucher: that must not happen.

If the key had the permission “Webhook Endpoints: Write”, everything is done. The panel says “The webhook is set up. You may now set the “Webhook Endpoints” permission on the key back to None.” Do that, the key does not need it afterwards.

Without this permission you set it up by hand, the card guides you under Messages from Stripe:

  1. At Stripe, open Webhooks under Developers, dashboard.stripe.com/webhooks, and add a new endpoint.
  2. Enter the address from the panel. It ends in /api/payment-webhook/stripe.
  3. Choose these four events:
    • checkout.session.completed
    • checkout.session.async_payment_succeeded
    • checkout.session.async_payment_failed
    • checkout.session.expired
  4. Save, then reveal the signing secret and copy it. It starts with whsec_.
  5. Paste it under Signing secret and press “Save webhook”.

Once key and webhook are in place, the card shows Ready.

  • Vouchers go on by themselves if your plan includes them. “Go to gift vouchers” takes you there, you set amounts, image and legal texts in that section (Chapter 24).
  • Payment when booking stays off until you tick Also charge online when booking. The guest then pays for the appointment right away on Stripe’s page. If they do not pay, the time is free again after 30 minutes. What this looks like for the guest and how to refund is in 25.4 and 25.5.

30.5 Replace, remove, or when it stops working

Section titled “30.5 Replace, remove, or when it stops working”

“Replace with a new key” checks the new one the same way. The tick for payment when booking stays as it was.

“Remove key” deletes it. Online vouchers and payment when booking are then off. The system also deletes the webhook at Stripe if the key still may. Otherwise delete it there yourself.

Once a day the system asks Stripe whether the key is still valid, the card shows the day under “Last checked”. If Stripe no longer accepts it, online vouchers and payment when booking go off, and you get an email with the subject “Your Stripe key is no longer valid”. Then enter a new one under Business. If Stripe is only unreachable for now, nothing changes.

The Activity Log (Chapter 23) records each of these: “Stripe key entered”, “Stripe key removed” or “Stripe key no longer valid”.