> For the complete documentation index, see [llms.txt](https://docs.merchant.alb.ua/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.merchant.alb.ua/en/payment-widgets-for-cms/prestashop/settings-and-authorization.md).

# Settings and authorization

{% stepper %}
{% step %}

### Let's go to the module settings

You need to click "Configure"

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FJlHptzUl7HzGnwHrBbT5%2Fimage.png?alt=media&amp;token=7eea397e-0208-4b77-86de-44ea33a9c416" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Initial settings

Most of the fields will be provided by the bank for filling in.

#### Сторінка налаштувань :

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FQnKBJ16dNfS6xD67eLVb%2Fimage.png?alt=media&amp;token=164fec0e-f921-46b9-a3d5-4570d6f48d9d" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
It is mandatory that all fields be filled in for the payment plugin to work correctly.
{% endhint %}

Field description:

* The **`Status Page Type`** field has three available values:
  * **STATUS\_TIMER\_PAGE** - default page, if the merchant did not select the desired type, the redirect timer automatically displays the status page for 1 minute with automatic redirection of the user to the merchant's site (redirect URL)
  * **STATUS\_REDIRECT\_MERCHANT\_PAGE** - immediate redirection to the merchant's URL
  * **STATUS\_PAGE** - redirection to our status page (download receipt ...)
* The `API URL` field must be set to the value - <https://api-ecom-prod.bankalliance.ua>
* The `Service Code` and `Merchant Id` fields will be provided by the bank
* The `Authorization Key` field will need to be generated independently according to the documentation (<https://docs.merchant.alb.ua/en/authentication#process-of-generating-client-communication-jwk-keys>), where the public part will need to be transferred to a bank employee
* The `Device Id`, `Refresh token`, `Auth token` fields will appear after authorization
* In the `Successful Order Status`, `Failed Order Status`, `Successful Return Status`, `Return Error Status` fields - you need to choose yourself

{% hint style="warning" %}
After configuring all fields, be sure to click the "Save" button and only then click the "Authorize" button.
{% endhint %}

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FQ9wXEE1ZOoa3E7WNZTB6%2Fimage.png?alt=media&amp;token=9ca0a5ca-6eb6-4bcb-b0a8-68e4e4f60688" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FEcTi4n7jWBcunoS7N3j2%2Fimage.png?alt=media&amp;token=7d1ab448-8412-4350-8800-4d698bb130ba" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
