Skip to content
## 1.Generating a Xoo.Cash account

## 1.1.Generation example

## 1.2.Generation via API

## 2.Iframe

## 3. QR

The XooCash account consists only of digits, the maximum length of which is 24 characters.

Example: **0013651236478**

- the first 3 digits are the PSP ID
- 4th digit is the checksum (checksum is calculated according to the Luna algorithm)
- everything else is the account number or order number in the PSP’s system

**001** – PSP ID

**3** – check sum

**651236478** – account number / order number in the PSP’s system

A checksum is created for the number obtained by concatenating the “PSP ID ” and “account / order number in the merchant’s system ”- 001651236478. Further, according to the Luna algorithm, we obtain a checksum equal to – 3. We collect the XooCash account “PSP ID” + “checksum” + “Account / order number in the PSP’s system”.

Using the GET method, we make a request to the address https:// xoo.cash/v2/generatexoocashacc/001/651236478

**001** – PSP ID

**3** account number / order number in the PSP’s system

json with generated XooCash account will be returned **{ “acc”: “0013651236478”, “code”: 100, “text”: “success” }**

For simplified integration you can use iframe

Example:

` ````
````<`

iframe
style="border:none;" scrolling="no" width="480" height="300"
src="https://xoo.cash/v2/iframe/100/1564644654/10/John%20Doe" title="xoocash">
`<`

/iframe`>`

**100** – PSP ID

**1564644654** – account in PSP system

**10** – the amount to be paid in integer form. For example, we multiply 100.00 USD payable by 100 and the amount to be paid is 10,000.

**John Doe** name of recipient.

Evrything else is optional.

The QR code should contain https://xoo.cash/v2/qr/0013651236478/100/1? paramname=paramvalue¶mname2=paramvalue2

**0013651236478** – XooCash account

**100** – the amount to be paid in integer form. For example, we multiply 100.00 USD payable by 100 and the amount to be paid is 10,000.

**1** order id

everything else is optional.