Getting started
Go-live checklist
Work through this list with your test setup before the first real-money launch.
Setup#
- Your brands, the default brand, and the allowed origins of every page that embeds the games are set up with us (what we need).
- Your wallet URL is set up, and your client id and secret are stored safely on your side.
- Every call we make is checked for its signature over the raw body, and a wrong one is answered
{"code": 413}(how). - Your calls to us are signed over the path and query you call, prefix included, and pass the test vectors.
- Every answer comes with HTTP status 200 and the outcome in
code. - Amounts are kept as integers in units for each currency you offer (Amounts).
Launch and play#
- A real launch opens in your page's iframe, and
authanswers with the launchuserandcurrency. return_urlandaccount_history_url, if you send them, are on an allowed origin of the brand.- If you use more than one brand,
authconfirms a non-default brand indata.brand. - A bet, a win and a loss move your balance as expected; your page receives the
ifc.*messages it needs. - If you use the reality check:
irc_durationopens the window, and a 412 to awithdrawshows your message. - A free bet added with Add free bets can be played, and its win arrives as a
depositwithaction: "freebet". - A round-details link opens from your back office and does not end an open game of the player.
- You know how to rotate the client key.
Conformance#
Every scenario of the conformance suite passes against your test wallet:
auth-ok:authaccepts a fresh token and answers with the player, balance and currency.auth-bad-token:authanswers 401 to an unknown token.auth-token-single-use: A token is accepted once.sig-bad: A wrong signature is answered 413.sig-raw-bytes: The signature is checked over the raw body bytes as sent.sig-stale-ts: A timestamp more than 300 seconds off is answered 413.http-status-200: Answers come with HTTP status 200 and the outcome incode.info-ok:infoanswers the balance as an integer.withdraw-ok: A withdraw takes the amount and answers the new balance.withdraw-replay: The same withdraw again is answered 409 (or 200) and changes no balance.withdraw-insufficient: A withdraw above the balance is answered 402.withdraw-units-exact: The amount moves exactly, as an integer.smallest-amount: A withdraw and then a deposit of our smallest amount (10^-8 of the coin in a crypto currency; a cent, a yen or won in a fiat currency) each move the balance by exactly that.deposit-ok: A deposit adds the amount.deposit-replay: The same deposit again changes no balance.deposit-freebet: A free-bet deposit (action: "freebet", no withdraw) is accepted.deposit-dead-session: A deposit is accepted after the token expired.rollback-ok: A rollback returns the stake.rollback-replay: The same rollback again changes no balance.rollback-unknown: A rollback of a withdraw you never saw is answered 408 (or 200).rollback-after-late-withdraw: A rollback answered 408, then the withdraw, then the same rollback again: the second answer is 200 and the stake comes back.rollback-dead-session: A rollback is accepted after the token expired.shared-action: A deposit after a withdraw with the sameaction(and, as a hostile variant, the sameaction_id) is applied, not answered 409.duplicate-names-transaction: Every 409 carriesdata.provider_tx_id.concurrent-identical-withdraws: The same withdraw sent many times at once is applied once.concurrent-distinct-withdraws: Different withdraws sent at once are all applied.latency-info-p99:infoanswers within 1 second at the 99th percentile.net-zero: The whole run leaves the test player's balance where it started.
Recommended (rule 2): a wallet that answers the rollback 408 and does not follow it gets a warning in these two scenarios in the full run, and in the first of them in Test connection (it runs only that one), and still passes. Without it, a withdraw you apply more than 5 minutes 30 seconds after we gave up on it takes the stake for a bet we already declared void, and we do not learn of it: we send the same rollback once more 30 seconds after your first 408, once more 5 minutes after a second 408, and nothing after that (the late withdraw). After a rollback answered 200 we send nothing again, so a wallet that answers 200 must refuse the late withdraw: applying it fails the run.
rollback-then-withdraw-refused: A withdraw that arrives after its rollback is refused (rule 2, recommended). A withdraw applied once and returned by the same rollback sent again is a warning if the rollback was answered 408, and a failure if it was answered 200.timeout-abandoned-withdraw: A withdraw we give up on, its rollback and the withdraw arriving late leave the balance whole (rule 2, recommended). A rollback answered 408, exactly that withdraw taken, and the stake returned by the same rollback sent again is a warning.