fix(payments): reuse checkout attempts and show pending status

This commit is contained in:
2026-09-30 21:14:19 +03:30
parent 450b387228
commit 9f3f3631ac
4 changed files with 191 additions and 67 deletions

View File

@@ -1063,9 +1063,31 @@ export interface BlogAnalyticsSchema {
// payment
export interface CreatePaymentOut {
start_pay_url: string;
authority: string;
start_pay_url: string | null;
authority: string | null;
payment_id: number | null;
idempotency_key: string | null;
status: "initiated" | "pending" | "paid" | "failed" | "canceled";
base_amount: number;
discount_amount: number;
amount: number;
}
export interface PaymentDetailSchema {
payment_id: number;
event_id: number;
ref_id: string | null;
authority: string | null;
base_amount: number;
discount_amount: number;
amount: number;
status: "initiated" | "pending" | "paid" | "failed" | "canceled";
verified_at: string | null;
event: {
id: number;
title: string;
slug: string;
image_url?: string | null;
success_markdown?: string | null;
};
}