# 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>
