# Settings and authorization

### 1. Initial settings

Go to AlliancePay → Settings and fill in all the fields. Please note that some fields are provided by the bank and click the save button and only then perform authorization.

<figure><img src="https://1348498792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdjW26z83WQoOq0ZjunWw%2Fuploads%2FPYjQ0kcbtH5lc5DGoHsW%2Fimage.png?alt=media&#x26;token=3b9c550c-daac-4821-b4eb-3301517d9e2e" alt=""><figcaption></figcaption></figure>

It is mandatory that all fields be filled in for the payment plugin to work correctly.

The `Device ID` and `Refresh Token` fields are displayed as read-only — they are saved after successful device authorization.

### 2. Device authorization

* Click Reauthorize Now&#x20;
* After success, Token valid until: — token expiration date/time will appear.

Important: The token is valid for 24 hours; it automatically renews every \~12 hours. You can also click Reauthorize Now to manually renew the token.

### 3. Time zone and time accuracy

Make sure that Kyiv is selected in Settings → General → Time zone. The plugin parses and displays the tokenExpiration date in the site's local time.

<figure><img src="https://1348498792-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdjW26z83WQoOq0ZjunWw%2Fuploads%2FEzcIqzn6zHto1KSzEqiV%2Fimage.png?alt=media&#x26;token=c1fee78f-9ed6-4aa1-86c1-d5fbcb76eb01" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.merchant.alb.ua/en/payment-widgets-for-cms/wordpress/settings-and-authorization.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
