> For the complete documentation index, see [llms.txt](https://docs.tygapay.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tygapay.com/payment-gateway/how-it-works.md).

# How It Works

We provide two distinct payment gateway order options: '**`payment`**' and '**`deposit`**'.

## :credit\_card: **Payment Orders (Fixed Amount):**

For payment orders, a specific, predetermined amount must be paid to complete the order.

{% hint style="info" %}
Use Case: Browse products on your website. Specify the exact amount and initiate the TygaPay order to be paid in full.
{% endhint %}

## :credit\_card: **Deposit Orders (Flexible Amount):**

In the case of deposit orders, there is no fixed amount requirement. Any payment made toward the order will be processed, and upon receipt, the order will be considered complete.

{% hint style="info" %}
Use Case: Accept donations of any amount for your organization or credit a user's account in your system upon successful payment.
{% endhint %}

## :map: Process Flow

1. :rocket: **CREATE:** Initiate Order Creation via API. See:[Orders](/api/apis/orders.md#create-order)
2. :computer: **PRESENT:** Present the Payment Gateway URL to the Customer.
3. :credit\_card: **PAY:** Customer proceeds with Payment for the Order.
4. :white\_check\_mark: **COMPLETE:** Automatically Redirect to the Specified **`returnUrl`**. See: [Orders](/api/apis/orders.md#order-redirect-url)
5. :loudspeaker: **NOTIFY:** Trigger Notification to the Specified **`notifyUrl`**. See: [Orders](/api/apis/orders.md#order-notify-url-webhook)

<figure><img src="https://820186084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpCZIBuMMKukshUmEKQzb%2Fuploads%2FhyWrUlJ5fGUxncBwa8ju%2Fimage.png?alt=media&amp;token=f15f2adb-8ac1-451d-90f5-2acaf71952bb" alt=""><figcaption><p>Payment Gateway Process Flow</p></figcaption></figure>
