> 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/magento-2/functionality.md).

# 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FprFll1BZuHeGzwomRdcz%2Fimage.png?alt=media&amp;token=913ac9d7-c391-4f77-a474-b3065e43cca2" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2F66pJ3hQnLp2iib12u1Cs%2Fimage.png?alt=media&amp;token=59724998-7a77-4418-b3e0-4d48c26ece88" alt=""><figcaption></figcaption></figure>

### View orders in the admin panel

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

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FRkz4mqpsSL5Q6KJ33ahl%2Fimage.png?alt=media&amp;token=d15fc75a-86de-4b9c-bce3-bc63629fa2fd" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FbZNQEOPBnsLJ9WBXXd0J%2Fimage.png?alt=media&amp;token=4d103924-e661-4114-85a9-d226c84aff0f" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2F83hc20cYLTYIITakaI5P%2Fimage.png?alt=media&amp;token=a60f8242-2d15-4c3f-a8e6-6270d19dc3ff" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FOnB9lBYp0U7okxPtrIMB%2Fimage.png?alt=media&amp;token=115d840e-db15-4d27-82c0-63019cc5dae2" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FVgq4bT2wIFTsBkNrYSfx%2Fimage.png?alt=media&amp;token=8286124e-3749-4785-810c-69847c135625" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FEYX63uyD2BYCLoruLjQl%2Fimage.png?alt=media&amp;token=94793482-3448-4caa-b1d3-4797fe2a35d0" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FkxZqxyUr2BKjFUCGdP3q%2Fimage.png?alt=media&amp;token=24637f80-f55c-45f0-9c0e-d417f3a9d48d" 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="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FL7yg9AJNb8osgatQbm4b%2Fimage.png?alt=media&amp;token=2e040ed2-24bd-45d6-b93b-2b1eb9a44b07" alt=""><figcaption></figcaption></figure>
