# Description

## Commands

* /dedipass (Display informations about payment)
* /dedipass \<code> (Send a request to check if code is valid)

## How to setup ?

* Create an account on [https://dedipass.com/](https://dedipass.com/fr/)

Now we need to create a new Services. Select "Unique product" checkbox and click next.

#### Configuration Section

* Put your server website link on website line.
* Put a name for dedipass panel.
* On install URL, put <https://google.fr> (We don't care about this).
* If you want you can put a test code to try if your setup work correctly.
* Choose Redirection (recommanded) and put <https://google.fr> as redirect URL. (We don't care about this too).
* Save this configuration.

#### Get your API Keys

Go on your Installation page of your service. Check "Validate a transaction" section. And get your public key & private key.

![You can find your key's here.](https://3620214706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF0XSeWDURQQD0NV0xqds%2Fuploads%2FJCCdyhCTH8JrnCLazrVr%2Funknown.png?alt=media\&token=d60d8611-965e-4e76-9e30-eed735026afe)

#### Configure your offers

Now, you need to setup some offers to add to your informations message more informations.

* Go on your service and select it.
* Go on "modify" dropdown and start working on your offers.&#x20;

At this point, we recommand you to just make offers by SMS. More easier for your players. So i choose a french SMS for 3€ for the player.

![Example.](https://3620214706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF0XSeWDURQQD0NV0xqds%2Fuploads%2FPn3MdcbMMFv5eL9hzJv2%2Fimage.png?alt=media\&token=7b61fa01-76af-4b51-bc8f-d76de20c5daf)

For the example, we just gonna use 1 offer but you can repeat this process for other countries. Now, you can go on your service again, and select "Apparence". Normally, you just have SMS dropdown with a number & Text to send. You can copy this and put it on your configuration like you want on your "INFORMATIONS" messages.

#### Now, let's config MercuryDedipass

![Default configuration exemple.](https://3620214706-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FF0XSeWDURQQD0NV0xqds%2Fuploads%2Fpqfe5f7peapvC5wA0N98%2Fimage.png?alt=media\&token=5770231e-d38a-4bd0-8520-0110f08b8490)

* Put your "PUBLIC*KEY" & "PRIVATE*KEY".
* Set a list of commands to execute when correct code is enter.
* Put "ANNOUNCE\_BUY" to false if you don't want broadcast on a buy.
* Change "MESSAGES" category.

## That's it !

Congratulations ! You successfully setup MercuryDedipass. Now you can try to make /dedipass \<code> with your test code.
