# Functionality

### Order creation process

After the customer has selected the products and gone to the payment page, they need to choose the payment method via "Alliance Pay"

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

After that, the buyer is redirected to the payment page to enter personal data.

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

### View orders in the admin panel

To view all orders, go to `Sales → Orders`

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

Viewing order details is done via the "View" button.

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

### Checking order status

{% hint style="info" %}
У разі виникнення проблем з статусом замовлення, присутній функціонал ручної перевірки
{% endhint %}

In the payment details there is a section called "Payment & Shipping Method"

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

When you click on the "Check Payment Status" button, the order status will be checked.

### Making refunds

To make a refund, you need to go to the payment details and go to "Invoices"

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

And we go to the invoice details via "View"

{% hint style="info" %}
The invoice status must be "Paid", which indicates its success.
{% endhint %}

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

In the invoice details, you need to create a return document by clicking on "Credit Memo"

Then in the "Items to Refund" section, you need to select all the products in the "Qty to Refund" column

<figure><img src="/files/8KjAgEXDom30sJaHMP6R" alt=""><figcaption></figcaption></figure>

Then press the "Refund" button

{% hint style="warning" %}
Refund Offline will not create a request to the Alliance Bank API for a refund, this is a standard process for Online\Offline payment methods
{% endhint %}

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

After completing the return, a new operation with the type "Refund" will appear in the order details, and the "Item Status" column will change to "Refunded"

<figure><img src="/files/g9zgQmOjFMSO3rJKZbWC" 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/magento-2/functionality.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.
