add payment text
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
2026-09-30 16:26:38 +05:00
parent 7e403dab13
commit ebedeba009
19 changed files with 1387 additions and 23 deletions

View File

@@ -601,6 +601,11 @@ CREATE TABLE IF NOT EXISTS visa_master_order_payments (
gateway_status character varying(32) NOT NULL DEFAULT 'pending',
gateway_reference character varying(255),
gateway_response jsonb,
-- orderNumber sent to GBÜS register.do and shown on its hosted payment
-- page ("Номер заказа"): ddMMyyHHmmss in Ashgabat time, e.g.
-- 290926133808 for 29.09.2026 13:38:08. GBÜS rejects a repeated
-- orderNumber per merchant, hence the unique index below.
order_number character varying(32),
created_by bigint,
created_at TIMESTAMP DEFAULT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC') NOT NULL,
updated_at TIMESTAMP DEFAULT (CURRENT_TIMESTAMP AT TIME ZONE 'UTC') NOT NULL,
@@ -615,6 +620,8 @@ CREATE TABLE IF NOT EXISTS visa_master_order_payments (
CREATE INDEX IF NOT EXISTS visa_master_order_payments_order_id_idx ON visa_master_order_payments (order_id);
CREATE INDEX IF NOT EXISTS visa_master_order_payments_user_id_idx ON visa_master_order_payments (user_id);
CREATE UNIQUE INDEX IF NOT EXISTS visa_master_order_payments_order_number_idx
ON visa_master_order_payments (order_number);
-- Every individual step taken while processing a payout (validated, rate
-- fetched, gateway request sent, gateway response received, order marked