# Introduction

The Payler Merchant API allows you to perform a standard set of e-commerce operations, operations of funds transfer from a merchant account to a client card according to one of the selected interaction schemes:

1. Provided that you enter bank card data on the merchant’s page ([Merchant scheme](#merchant-scheme));
2. Provided that you enter bank card information on the Payler Gateway page ([Gate scheme](#gate-scheme)).&#x20;

{% hint style="info" %}
Using the Merchant scheme requires the merchant to comply with the requirements of the PCI DSS standard.
{% endhint %}

## PCI DSS

The Payment Card Industry Data Security Standard (PCI DSS) is a payment card industry data security standard developed by the Payment Card Industry Security Standards Board established by the IGC of Visa, MasterCard, American Express, JCB, and Discover.&#x20;

PCI DSS aims to protect customer data from unauthorized access and reduce the risk of fraudulent transactions when processing online payments.&#x20;

The standard establishes requirements and recommendations that all trade and service enterprises (merchants) must follow when working with confidential payment data.&#x20;

Before the merchant system starts processing sensitive data, it is necessary to determine the exact requirements that a particular solution must meet. Requirements are primarily determined based on information about the projected volume of transactions that will be processed by the system over a 12-month period.&#x20;

[**Learn more about PCI DSS levels**](https://usa.visa.com/support/small-business/security-compliance.html)&#x20;

Completion of a Self-Assessment Questionnaire (SAQ) is usually part of the requirements.&#x20;

[**Learn more about SAQ**](https://listings.pcisecuritystandards.org/documents/Understanding_SAQs_PCI_DSS_v3.pdf)

{% hint style="info" %}
For additional advice on interaction within the framework of one or another of the proposed schemes, you can contact the Payler technical support service.
{% endhint %}

## Types of operations

### **Payment**&#x20;

Operation of funds transfer from the user's card account to the merchant's account.

* One-stage payment—after authorization, payment amount is blocked on cardholder's account and automatically debited after 24 hours. This type of payment is set by default for all merchants integrated in the system.
* Two-stage payment—after authorization, payment amount is blocked on the cardholder's account, but writing off happens only after operation approval by the merchant. This payment type is set by merchant request.&#x20;

### **Transfer**&#x20;

Operation of funds transfer from the merchant's account to the user's card one.

## Operation performing process

### Gate Scheme

#### **Payment (gapi)**&#x20;

Payment process is as follows:

1. Merchant calls [StartSession](https://docs.payler.com/api/api-methods/payments#startsession) API method to create a payment session;
2. Merchant redirects the user to the payment page ([PayGate](https://docs.payler.com/api/api-methods/payments#paygate));
3. User enters card details and sends them. By default, up to 5 payment attempts are available to the user. Number of attempts can be individually changed by merchant's request. If necessary, the payment gateway redirects the user to the issuing bank page for entering a confirmation code [(3-D Secure](https://docs.payler.com/api/general#3d-secure));
4. After payment is completed, the user is redirected to the merchant’s website, a predefined address;
5. When the user is returned, the merchant calls [GetStatus](https://docs.payler.com/api/api-methods/payments#getstatus) API method to check the status of the order.

<figure><img src="https://728683359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4CRspAqvONqAVKMcXBeA%2Fuploads%2FYG2AjUZDLE7orLzCX1CH%2FENG%20Pay%20Gate.png?alt=media&#x26;token=15351fac-245f-498d-bbee-9f1ee172c745" alt=""><figcaption><p>Payment. Gate scheme</p></figcaption></figure>

#### **Transfer (cgapi)**&#x20;

Process of transferring funds is as follows:

1. Merchant calls [StartCreditSession](https://docs.payler.com/api/api-methods/transfers#startcreditsession) method to create a transfer session;
2. Merchant redirects the user to the transfer page ([CreditGate](https://docs.payler.com/api/api-methods/transfers#creditgate)).
3. User enters card details and sends them;
4. After transfer is completed, the user is returned back to to merchant’s website, a pre-determined address;
5. When the user is returned, the merchant calls [GetStatus](https://docs.payler.com/api/api-methods/payments#getstatus) method to check the status of the transferring.

<figure><img src="https://728683359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4CRspAqvONqAVKMcXBeA%2Fuploads%2FSCeNPkUxpvlvcmkaI4iy%2FENG%20Payment%20Transfer.png?alt=media&#x26;token=08ec083d-8ba3-493f-9bee-af7a7bd992b5" alt=""><figcaption><p>Transfer. Gate scheme</p></figcaption></figure>

### Merchant Scheme

#### **Payment (mapi)**&#x20;

Payment process is as follows:

1. User enters card details on the merchant’s website.
2. Merchant calls [PayMerchant ](https://docs.payler.com/api/api-methods/payments#paymerchant)or [Block](https://docs.payler.com/api/api-methods/payments#block) method, depending on the type of payment.
3. If it is necessary to pass additional authentication using 3D-Secure, depending on the 3DS protocol used, the merchant makes additional [Send3DS](https://docs.payler.com/api/api-methods/payments#send3ds), [ThreeDsMethodComplete](https://docs.payler.com/api/api-methods/payments#_toc64642118), [ChallengeComplete](https://docs.payler.com/api/api-methods/payments#challengecomplete) requests.
4. After payment is completed, merchant calls the [GetStatus](https://docs.payler.com/api/api-methods/payments#getstatus) method to check the status \
   of the order.

<figure><img src="https://728683359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4CRspAqvONqAVKMcXBeA%2Fuploads%2FrjvVUHM63fEQ3tEEvWhT%2FENG%20Payment%20Merchant.png?alt=media&#x26;token=e6869aaa-8fb8-4e46-822d-9cc28d758d70" alt=""><figcaption><p>Payment. Merchant scheme</p></figcaption></figure>

#### **Transfer (cmapi)**&#x20;

Process of transferring funds is as follows:

1. User enters card details on the merchant’s website.
2. Merchant calls [CreditMerchant](https://docs.payler.com/api/api-methods/transfers#creditmerchant) method.
3. After payment is completed, the merchant calls the [GetStatus](https://docs.payler.com/api/api-methods/payments#getstatus) method to check the status \
   of the transfer. In rare cases, the user may not return to the merchant's website, for example, \
   if they close the browser window immediately after payment, or they lose access to the Internet. To always find out about changes in the status of an order, the merchant can set up receiving guaranteed notifications ([callback](https://docs.payler.com/api/general#guaranteed-notifications)).

<figure><img src="https://728683359-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4CRspAqvONqAVKMcXBeA%2Fuploads%2Fv5FvKXvv4dWpO6Q1H50B%2FENG%20Merchant%20Transfer.png?alt=media&#x26;token=dd769474-96d0-41fa-8bf4-ae3f40b95b96" alt=""><figcaption><p>Transfer. Merchant scheme</p></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.payler.com/api/general-information/introduction.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.
