> 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/joomla-+-virtuemart/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 "AlliancePay"

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FKR8JKIQo0aueWlsgmwab%2Fimage.png?alt=media&amp;token=3f9e181b-e8a2-4535-b242-1b7c622a22b2" 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%2FPl8WZNFEQIY2B6Hjtd6n%2Fimage.png?alt=media&amp;token=871b2797-20e4-439a-aebc-7dee4c36fd36" alt=""><figcaption></figcaption></figure>

### View orders in the admin panel

To view all orders, go to `Components → VirtueMart → Orders`

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FbA0LMyVVnkZORCmyB7qT%2Fimage.png?alt=media&amp;token=be8f586d-6c65-43e6-8bd4-b14daa11e21a" alt=""><figcaption></figcaption></figure>

Viewing payment details is done by clicking on the value in the `"Order number/Invoice"` column.

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FgIkLd2za4oW71HEBIrXs%2Fimage.png?alt=media&amp;token=82fa0192-6c93-408a-9dab-85bbbf7ee3a9" alt=""><figcaption></figcaption></figure>

### Перевірка статусу замовлення

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

In the payment details there is a section "AlliancePay update transactions and statuses"

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FV3sWKedXSDEV2JUUCGQb%2Fimage.png?alt=media&amp;token=b4ad4c35-6d3c-4fdd-8401-14c5435320ce" alt=""><figcaption></figcaption></figure>

When you click the "Update" button, the payment status will be checked.

### Making returns

In the payment details, you can find two sections "Partial Refund (Alliance)" and "Full Refund (AlliancePay)"

{% hint style="info" %}
Обов'язково "Статус оплати" плтежу повинен мати "SUCCESS", що вказує на його успішність

![](https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FIk6Yk0rblMSWmDeYUuPI%2Fimage.png?alt=media\&token=682d3f36-f776-4312-a0d1-fa440f45556e)
{% endhint %}

{% tabs %}
{% tab title="Partial refund" %}
To perform a partial refund, in the "Partial refund (Alliance)" section, you need to use the checkboxes to select the products for which the refund will be performed.

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FwgEPKMPu1tsCYb6JHBPJ%2Fimage.png?alt=media&amp;token=7c3d8b94-54e0-4aa1-8a4a-573709ccd68f" alt=""><figcaption></figcaption></figure>

Thus, the system automatically calculates the amount for the selected products

After that, you need to click the "Return for selected products" button, a window will immediately appear with a message about a successful partial return

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FzIFg0Z0hz4SocIRBCiwZ%2Fimage.png?alt=media&amp;token=c3266612-81ca-449d-9e1d-97888ab4df2f" alt=""><figcaption></figcaption></figure>

In the payment details in the "Alliance Transaction History" section, a new payment with the transaction type "REFUND" will appear.

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2Fs5D1ClA8hJgjhrsLVPpT%2Fimage.png?alt=media&amp;token=09fe17ee-3a74-4006-8416-10b365eeaab5" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Full refund" %}
To perform a full refund, click the "Execute Order Refund" button in the "Full Refund (AlliancePay)" section.

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FP5KzKofT288t2mdm1BGh%2Fimage.png?alt=media&amp;token=e97a89c7-9169-439f-accf-aafd634b96a7" alt=""><figcaption></figcaption></figure>

After that, a new payment with the transaction type "REFUND" will appear in the "Alliance Transaction History" section.

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FgA3EpslwWlI3QOthEBHQ%2Fimage.png?alt=media&amp;token=54a9802f-ebde-4ae9-b66d-05845648abe7" alt=""><figcaption></figcaption></figure>

And also in the "Items" section, each product will receive the status "Refunded"

<figure><img src="https://1350325132-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6EENJ3cuuKcQmuXu1GzQ%2Fuploads%2FN6kmApmJp0m0vxU856vx%2Fimage.png?alt=media&amp;token=3fc25070-16fb-430c-b12f-d8beee225688" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}
