# Structure of payment processing

#### Steps of payment processing

1. Partner’s client makes a request to create a payment in the Merchant’s project
2. The project sends a request to create a transaction
3. The project receives the URL of the payment page
4. The project redirects the client to the payment page
5. The client enters the card details and clicks "Pay"
6. Payment system receives a request, if confirm\_url value parameter was indicated during creation of the transaction, then payment system makes a request to Merchant’s project.
7. The project responds to the address indicated in the confirm\_url value parameter. If the project responds with an http code other than "200", the transaction is suspended.
8. The payment system sends a request to the bank
9. The payment system receives a response from the bank with the transaction status
10. The payment system displays the receipt on the payment page
11. The payment system sends the transaction status to the address of the project specified in the callback\_url value parameter.

[**UML-diagram of payment processing**](#user-content-fn-1)[^1]

<img src="https://content.gitbook.com/content/C7g7C9dIGHiADOjJlGJy/blobs/LppoPmLM4lKvYP21gJ0B/file.excalidraw.svg" alt="" class="gitbook-drawing">

[^1]:


---

# 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.tarlanpayments.kz/eng/acquiring/welcom/structure-of-payment-processing.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.
