# PHPShop

**The Module Setup and Installation Instruction**

1. Download the [archive](https://github.com/unitpay/phpshop-module/archive/master.zip) with the module.
2. Unpack the contents of the archive to the root of the site.
3. Add the following lines in phpshop/inc/config.php file:

```
[unitpay]

domain = "unitpay.ru";

public_key = "<Ваш публичный ключ из личного кабинета unitpay.ru>";

secret_key = "<Ваш секретный ключ из личного кабинета unitpay.ru>";
```

4\. In the admin panel, go to Orders -> Payment Methods and add Unitpay payment method. Check that the "Show" checkbox is checked.

5\. In your unitpay.money account, enter the address of the payment handler http\://\<your site address>/payment/unitpay/result.php

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fdokumentacziya%2F-M9xezG_6tZ_3GRmvyig%2F-M9y2jxfzUkZVJDZikXI%2F1.png?generation=1592326553904861\&alt=media)

6\. VAT and currency are set in "Settings" - > "Main Settings". If you need to select "WITHOUT VAT", then uncheck "Include VAT in invoice".

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-MOqMtsB8HVgm8fmbdFD%2F-MOqPVqCkszcQnQRPEyc%2Fphp3.png?alt=media\&token=ba104a68-3f40-4bbe-98bf-ec23b6a94c2d)
