> For the complete documentation index, see [llms.txt](https://premium.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/merchants/paysync.md).

# PaySync

{% hint style="warning" %}
If you need to update the module on the server, please refer to the [instructions](https://premium.gitbook.io/main/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-files-on-the-server#merchant-and-auto-payout-modules).

Please note that when you first download the Paysync module to the server, you also need to update the script system files according to the [instructions](https://premium.gitbook.io/main/en/basic-settings/faq/updating-script-files-on-the-server) (the entire distribution) or individual files using the following paths:\
`wp-content/plugins/premiumbox/premium/includes/class-form.php`\
`wp-content/plugins/premiumbox/includes/hashed_functions.php`\
After updating the system files, the Paysync module will work correctly.
{% endhint %}

## Merchant Account Settings

{% hint style="warning" %}
To discuss working conditions, please contact a [service representative](https://t.me/psync).

**Disclaimer**: When connecting your website to any service, please assess the potential risks of collaboration on your own.
{% endhint %}

{% hint style="info" %}
Please note that when using the PaySync module for receiving funds, the amount in the request is rounded to 0 decimal places (in the "Payment Instructions for the User," the amount is formatted according to the merchant's requirements).
{% endhint %}

Register for the PaySync service through a service representative and log in to your merchant account.

## Module Settings

In the admin panel, create a new merchant in the "**Merchants**" section ➔ "**Add Merchant**."

Select PaySync from the dropdown menu in the "**Module**" field, enter a name for the module, and click "**Save**."

<figure><img src="/files/9N9Q4aPWH54uO8FT999F" alt="" width="359"><figcaption></figcaption></figure>

Fill in the required authorization fields.

<figure><img src="/files/GCJYI7UehZM7JPAv59PW" alt="" width="400"><figcaption></figcaption></figure>

**Domain** — leave this field empty.

**API Key** — the API key copied from your PaySync account.

<figure><img src="/files/JHJZXtmZYcnvr8e0rzip" alt=""><figcaption></figcaption></figure>

**Client ID** — the ID copied from your PaySync account.

<figure><img src="/files/aumd7lJFdrCtwulUHBs6" alt="" width="217"><figcaption></figcaption></figure>

## Special Fields

<figure><img src="/files/PRkrEklDBDuJjfCB4xNV" alt="" width="289"><figcaption></figcaption></figure>

**Merchant Type** (the selected option is fixed for this module copy and cannot be changed later):

* **Payment Link** — returns a link for payment via QR code in the request; this option works with the selected payment method.
* **Requisites** — returns a card or phone number for transferring funds in the request using the shortcode \[to\_account].

<figure><img src="/files/JNRjPudUfKE6WKtletqP" alt="" width="563"><figcaption></figcaption></figure>

**Payment Method** — select the appropriate method for receiving funds from the client:

{% hint style="info" %}
All methods can be used for obtaining requisites and for links, except SBPQR, which is only for obtaining links.
{% endhint %}

Order — use the currency code from the exchange direction to select requisites (choose **\[Send] Currency code**).

**Custom Fields** — use the [additional currency field](https://premium.gitbook.io/main/en/basic-settings/currencies-and-exchange-directions/additional-fields#additional-fields-for-currency) "**Send**" to select requisites.

**Payment Method** — manually select the currency for requisites selection.

To update the statuses of requests based on payments made through the merchant, specify the webhook link in your PaySync account, taken from the merchant module settings.

<figure><img src="/files/1wEiVBAWmc9kV6LS6mBh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/JHJZXtmZYcnvr8e0rzip" alt=""><figcaption></figcaption></figure>

## Continuing the Setup

Next, configure the merchant by following the [general setup instructions](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/merchants/general-merchant-settings).
