Set up payments
Connect a payment provider and a currency so players can top up their balance, add promo codes, and handle invoices and refunds.
By the end, players top up their balance on the site through your payment provider, and you see every invoice and can refund it. The connection wizard takes about five minutes.
You need an account with the payment provider that gives you API keys, and the admin.payments permission in the admin panel; the owner has it. Payment providers come as modules from the marketplace; the only one built into the engine is "Bank transfer by details". Only the site owner can install a module from the wizard, and the list of modules appears once a Flute key is connected.
Connect a payment provider
Open the wizard
Open AdminStoreAccept payments and click "Connect a provider". The wizard goes through "Provider", "Currency", "Keys", "Test", "Go live" and "Done" 1.

Pick the provider
Find the provider with the search or by region 2. "Ready to connect" holds modules that are already installed, "Available to install" holds modules from the marketplace, with your region first. Pick the provider 3 and click the button at the bottom 4: "Continue" or, if the module is not installed yet, "Install and continue". A paid module opens in the marketplace.
Pick the currency
The wizard asks which currency to charge in and lists only the ones this provider accepts. If the site has no currency yet, the wizard fills one in from the site language. Then set how much a player gets for 1 unit of the currency and the minimum top-up.
Enter the keys
Fill in the fields with the keys from your provider's dashboard. In the "Paste these in the provider's dashboard" card, copy the "Webhook / notification URL" and paste it into the provider's dashboard. Without it, the provider cannot tell the site a payment went through.
If the provider has a sandbox, "Test mode (sandbox)" is already on for the first connection. Click "Save and test".
Test the connection
Nothing is charged at the "Test" step. The wizard checks the module, the keys, the currency and whether the provider can reach the site. You can read the warnings and move on.
Turn on payments
At the "Go live" step, click "Turn on payments". Then "Try a test payment" opens the top-up page, where you can pay yourself.
Once the test has passed, open the provider in AdminStoreAccept payments and turn off "Test mode (sandbox)". While it is on, payments are not real.
Pick at least one currency, otherwise players will not see this gateway at top-up.
A provider cannot be turned on until a currency is linked to it. Tick a currency under "Currencies" on the provider page, or link the provider to the currency on the "Currencies" tab.
The site is not on HTTPS; most providers refuse to send notifications to plain HTTP.
The payment goes through, but the site never hears about it and the balance is not topped up. Turn on HTTPS for the domain. You get a similar warning when the site runs on a local address that the internet cannot reach.
Currencies
A currency is what players pay in. The site balance is kept in its own units, and the currency rate says how many of those units a player gets for 1 unit of the currency. Currencies live on the "Currencies" tab of AdminStoreAccept payments.
A currency code is three Latin letters, for example USD. "Minimum top-up" blocks top-ups below that amount. There are two kinds of "Rate": "I set it" stays as it is until you change it, and "Market rate" updates itself every hour from open.er-api.com. Market rates are computed from a currency with a manual rate, so the site needs at least one of those. "Rate markup" lowers what the player gets at the market rate by that percent.
Under "Payment methods", tick where players can pay in this currency. A currency with no providers does not show up on the top-up page. "Quick amounts" adds buttons with ready amounts there.
A new rate does not touch money already credited. A currency that has invoices cannot be deleted, and its code cannot change.
Promo codes
A promo code adds a bonus to a balance top-up. Product discounts are set up in the products section. Open AdminStoreTop-up promo codes and click "Add promo code".
In "Promo code", enter the word players type when topping up. In "What the player gets", choose "A percentage of the top-up" or "A fixed amount" and set "Bonus size". A percentage cannot go above 100.
Limits are under "More options". "How many times it works in total" left empty means no limit, while "How many times for one player" left empty means once. You also find "Minimum top-up", "Valid until" and "Who can use it" there, the last one to keep the code for certain roles.
Invoices and refunds
A top-up goes through five steps. The player picks an amount and a method, pays on the provider's page, the provider sends the site a notification, the site marks the invoice paid and credits the balance together with the bonus, if one is set. If the notification does not arrive, the chain breaks at step three: the player has paid, but the balance did not go up.
Every top-up through a payment provider is an invoice. Invoices live on the "Invoices" tab of AdminStoreSales. Purchases paid from the balance are not counted here.
If a player paid and the balance did not go up, open the invoice and click "Mark as Paid". Do this only when you see the money in the provider's dashboard. Unpaid invoices older than 60 days are deleted automatically; paid ones are never deleted.
To give money back, open a paid invoice and click "Refund". The same share of what was credited, bonuses included, is taken from the player's balance, and their purchases are not blocked. If the provider module supports refunds, the "Refund the money through the provider" switch sends the money back to the payer by itself. If it does not, return the money in the provider's dashboard.
When the bank returned the money to the payer without you, click "Record chargeback" on the invoice. What is left of that top-up is taken from the balance. If the balance goes below zero, the player cannot buy anything until they top it back up to zero. Every refund and dispute is listed on the "Refunds & disputes" tab, which also has the "Unblock purchases" button.
The payment went through, but the invoice is Unpaid
Open the "Provider log" tab: it lists every notification from the provider and what the site did with it. A notification that failed on the site can be sent again with "Process again". If there are no notifications at all, check the notification URL in the provider's dashboard.
Reference
The admin panel shows them in the "Paste these in the provider's dashboard" card on the provider page, each with a copy button. The notification URL depends on the module:
https://<YOUR_DOMAIN>/api/payments/<driver>/webhook
https://<YOUR_DOMAIN>/api/lk/handle/<driver>After paying, the player returns to https://<YOUR_DOMAIN>/lk/success; after a failed payment, to https://<YOUR_DOMAIN>/lk/fail. Copy the exact URLs, with the driver filled in, from the admin panel.
| Check | What a failure means |
|---|---|
| "Payment module is running" | the module is not installed or is turned off |
| "All required keys are filled in" | a key is missing |
| "The provider accepts the saved settings" | the module did not start with these settings |
| "The provider accepts the keys" | the provider rejected the keys. Some providers cannot be checked this way; the first small payment confirms their keys |
| "Test or live mode" | a warning about the mode the provider is saved in |
| "A currency to charge in" | no currency is linked, go back to the "Currency" step |
| "The provider can reach the site" | the site has no HTTPS or cannot be reached from the internet |
You can check the keys later with "Check the saved keys" on the provider page, at most 5 times a minute.
They are under "More options" on the provider page. "Fee" is the percent the player pays on top; the balance gets the full amount. "Bonus" is the extra percent the player gets on top of the top-up. "Minimum Amount" is set in the payment currency. When it is empty, the currency minimum applies. If the provider has several payment methods, each can have its own fee and bonus.
When several providers are on, drag them in the "Order in the top-up window" card to change their order in the top-up window.
"Paid", "Unpaid", "Refunded", "Partially refunded", "Disputed", "Charged back", "Dispute won". A refund or dispute is shown instead of "Paid".
The only provider built into the engine. The player sends money to your bank details and attaches a receipt, and a staff member with the admin.payments.confirm permission confirms the top-up. It has no test mode and accepts any currency.
admin.payments opens every payment page: providers, invoices, promo codes, refunds and the log. Currencies need admin.currency.view to view and admin.currency to change. You cannot manually credit an invoice to your own account, and only the owner can change the owner's balance.