> For the complete documentation index, see [llms.txt](https://docs.ecommerce.seb.ee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-lv/maksajumu-metodes/maksajums-no-bankas-konta/tirgotaja-labaka-prakse.md).

# Tirgotāja labākā prakse

Ievērojot šos ieteikumus, jūs varēsiet izveidot uzticamu, drošu un lietotājam draudzīgu Pay by Bank integrāciju.

#### Pasūtījumu apstrāde un paziņojumi

* Izpildiet pasūtījumus tikai pēc tam, kad esat saņēmis **Webhook (saukts arī par atpakaļizsaukuma paziņojumiem)** apstiprinājumu par Settled statusu. Nekad neizpildiet pasūtījumu uzreiz pēc tam, kad klienta pārlūkprogramma atgriežas.
* Turiet pasūtījumus gaidīšanas stāvoklī, kamēr klients pabeidz autentifikāciju, un gaidiet galīgo statusu maksājumiem, kas paliek Initialized statusā.
* Nodrošiniet, ka Webhook apstrāde ir idempotenta. Dublikātu paziņojumi nedrīkst radīt dubultus pasūtījumus vai atmaksas.

#### Klienta pieredze

* Skaidri paskaidrojiet, ka klients tiks novirzīts uz savu izvēlēto banku un ka autentifikācijas metodes dažādās bankās var atšķirties.
* Ja klients atceļ vai pārtrauc maksājumu, sniedziet skaidrus, netehniskus ziņojumus un padariet atkārtotu mēģinājumu vai cita maksājuma veida izvēli vienkāršu.
* Piedāvājiet alternatīvas maksājumu metodes, ja Pay by Bank vai konkrētā banka nav pieejama.

#### Uzraudzība un saskaņošana

* Katru dienu saskaņojiet maksājumus, izmantojot saglabātās maksājumu atsauces.
* Uzraugiet Webhook piegādi, neveiksmīgos un atceltos maksājumus, kā arī izmeklējiet maksājumus, kas Initialized statusā paliek ilgāk, nekā gaidīts.

#### Drošība

* Vienmēr izmantojiet HTTPS un aizsargājiet savus API akreditācijas datus.
* Ierobežojiet piekļuvi maksājumu administrēšanas funkcijām, tostarp atmaksas uzsākšanai.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ecommerce.seb.ee/seb-docs-draft/seb-docs-public-lv/maksajumu-metodes/maksajums-no-bankas-konta/tirgotaja-labaka-prakse.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
