Payment, Test Mode and Enabling Sales
Connect your Stripe account with a restricted key, set up the webhook, make a test purchase and enable sales
The money goes straight to your own Stripe account. miraTEQ takes no fee per sale and has no access to your payouts. You pay Stripe’s own fees to Stripe.
You handle the key and enabling sales yourself, with your own login. miraTEQ never asks you for it, and these fields are locked in agency access. You create the Stripe account itself at Stripe, with ID and bank account.
5.1 Create and enter the key
Section titled “5.1 Create and enter the key”Open Payments in the sidebar. The card Your Stripe account guides you step by step:
- In the Stripe Dashboard, open the API keys at
dashboard.stripe.com/apikeys. - Choose “Create restricted key” and name it miraSHOP.
- Set these five permissions, all others stay on None:
- Checkout Sessions: Write
- Refunds: Write
- Payment Intents: Read
- Charges: Read
- Payment Method Configurations: Read
- Also set “Webhook Endpoints: Write”. The shop then sets up its webhook itself (5.2).
- Create the key and copy it. It starts with
rk_live_, and Stripe shows it only once. - Paste it in the panel under Restricted key and press “Check and save”.
The shop now asks Stripe whether the key works. This creates a payment page in your account that is closed again at once. You see it as an expired payment page in the Stripe Dashboard, and that is not an error. The panel then shows Key valid, and the key is never displayed again.
You only need Stripe Tax if you want to use it (Chapter 4). Then add Customers: Write and Tax Settings: Read. If Stripe combines Charges and Refunds in one row, set that row to Write.
If it does not work, the panel says why:
| Message | What to do |
|---|---|
| “This is the publishable key (pk_).” | You copied the wrong one. The shop needs the restricted one (rk_) |
| “This is an unrestricted key (sk_) …” | It can do everything, including payouts. Create a restricted one |
| “This is a test key.” | For real sales the shop needs a key that starts with rk_live_ |
| “Stripe does not know this key: deleted, expired or mistyped.” | Copy it again or create a new one |
| “The key is missing the permission …” | Set the named permission in Stripe. The key stays the same |
| “Stripe does not allow a payment page …” | Usually the account setup at Stripe is not finished yet |
| “The key cannot be stored securely right now.” | Please contact miraTEQ. Nothing was saved and nothing was changed at Stripe |
You enter a new key with “Replace with a new key”. “Remove key” puts the shop into test mode, and it stops selling.
5.2 The webhook
Section titled “5.2 The webhook”Stripe tells the shop about every payment, refund and chargeback. Stripe requires this because not every buyer comes back to the thank-you page. Without a webhook, sales cannot be enabled.
If the key had the permission “Webhook Endpoints: Write”, everything is done. The panel shows “The webhook is set up.” Afterwards set this permission back to None in Stripe. Stripe calls it sensitive because it can subscribe to all events of the account.
Without this permission you set it up by hand, and the panel guides you here too:
- Open
dashboard.stripe.com/webhooksand add a new endpoint. - Enter the address from the panel. It ends in
/shop/api/stripe_eigen. - Select the ten events the panel lists.
- Save, then reveal and copy the Signing secret. It starts with
whsec_. - Paste it under Signing secret and press “Save”.
5.3 Which payment methods buyers see
Section titled “5.3 Which payment methods buyers see”Stripe decides that by country, currency and your account settings, for example card, Apple Pay or Google Pay. You switch them on and off in the Stripe Dashboard. The shop fetches the list once a day and names the payment methods at the start of checkout.
PromptPay is only available in baht and only if it is switched on in your Stripe account. If a buyer switches to a market with a different currency, it drops out.
5.4 Test mode and test purchase
Section titled “5.4 Test mode and test purchase”A shop set up by miraTEQ starts in test mode. The panel and the page for buyers then show Test mode, sales disabled. Customers cannot order and no money moves, even if a key is already entered.
You yourself can still order. Open Enable sales and, under Test purchase, press “Open test purchase”. As long as you are signed in to the panel in the same browser, you go all the way to the confirmation, without money. The email has [TEST] in its subject. That way you see checkout, email and receipt the way a buyer sees them. The button appears as soon as a product has a price in the first market.
5.5 Enable sales
Section titled “5.5 Enable sales”The page Enable sales has four sections. What is still missing is at the top.
What the shop checks itself. For these points the shop sets the status to done itself, and Go there takes you to the right page:
| Point | Done when |
|---|---|
| Payment account | The key is valid and the webhook is set up |
| Mailbox | A mailbox for confirmations to buyers is set up. If it is missing, let miraTEQ know |
| Seller details | Name, address and email are entered (Legal) |
| Products | At least one product is in the shop, each with a product category and, where needed, a number |
| Delivery | At least one shipping method is on |
| Product safety in the EU | Only for delivery to the EU: manufacturer, identifier and image for every product |
Required steps. Here you choose and confirm yourself. Which points appear depends on your country and your markets. Each one is in Chapter 9. miraTEQ can enter facts such as a number, but you choose and confirm the legal case yourself. That chapter also says without which answer the shop will not sell to a country.
Test purchase. See 5.4. The line says how many test purchases there have been so far.
Enable sales. Tick “I sell on my own account and I am responsible for the offer, prices, legal texts and taxes. From now on the shop takes real orders.” and press “Enable sales”. As long as something is missing, it shows “Still open:” with the list, and the button stays grey.
When you enable sales, the shop asks Stripe once more. If Stripe does not accept payments yet, the panel reports “Stripe does not accept payments for this account yet. Please finish the setup at Stripe.” If everything goes through, this happens:
- The test purchases and their documents are deleted, and stock and numbers go back.
- Checkout names the payment methods of your real account.
- Your website rebuilds itself.
- The Log records who enabled sales and when.
5.6 After enabling sales
Section titled “5.6 After enabling sales”The shop checks your key once a day. If you deleted it at Stripe or removed a permission, the shop goes back to test mode and you get an email. If Stripe is just not reachable at the moment, nothing changes.
“Back to test mode” under Enable sales takes this step back. Customers can then no longer order, and existing orders stay. The same happens if you untick a required step.
If the rules change, it says “The rules have changed. Please check the points and confirm them again.”

