Skip to Content
Store and payments

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.

The payment provider wizard at the provider step

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

Next

On this page