Fintech · payments

1pay — Kaspi payment acceptance for websites and services

A Kaspi payment API: an invoice to a phone number, a link and QR code, subscriptions, refunds, webhooks and reconciliation every 15 minutes.

1pay2026

The brief

Accept payments through Kaspi on websites and in apps — for our own products and for third-party companies — via an API, without a cashier issuing invoices by hand.

What we did

A multi-tenant service: one account manages several companies (sole proprietors/LLPs), each connects its Kaspi till with an SMS code, and device secrets are encrypted with AES-256-GCM. A REST API /v1: an invoice to a phone number, a link and QR code, statuses, cancellations and refunds, idempotency, subscriptions with retried charges, webhooks with an HMAC signature, and payment reconciliation every 15 minutes. A white-label Platform API for SaaS platforms, an operator admin panel, a prepaid commission balance with automatic shut-off, OpenAPI documentation, and a daily database backup.

How we did it

The service was built as a shared payment layer for several products at once, so it has been multi-tenant from day one: one account manages several legal entities, each with its own tills, keys and webhooks. Till secrets are stored encrypted, and API keys are issued per company.

With money, the most important thing is that a paid invoice is never lost. So besides webhooks there is reconciliation every 15 minutes: it finds invoices that were actually paid if a notification did not arrive. All invoice-creation requests are idempotent — a repeated request does not create a second invoice.

Before launch the service went through four audit rounds — security and money logic separately — and the problems found were closed before products were connected. For SaaS platforms we built a white-label Platform API: the platform connects its own customers, and the commission is charged from a prepaid balance that switches payment acceptance off automatically when it reaches zero.

Result

The service has been running since June 2026 and is maintained through Kaspi updates; the 1Study and 1Ticket products accept payments through the Platform API.

15 minpayment reconciliation interval
4audit rounds before launch

What the client got

A customer pays through Kaspi on the website or in the app without a cashier

Paid invoices are not lost: reconciliation every 15 minutes picks up missed statuses

Subscriptions, refunds and cancellations go through the API, with no manual work at the till

Several companies and tills in one account

A SaaS platform can accept payments for its customers under its own brand

Discuss a project

Tell us about the task and we will reply with an estimate and a timeline.

No introductory call required: describe the task in the form or in a messenger, we will ask a few clarifying questions and come back with an estimate. This usually takes one or two working days.

We reply during working hours, usually within a couple of hours.
Chat on WhatsAppChat on Telegram