This commit is contained in:
2026-05-22 22:57:05 +03:00
parent 61c50eecc1
commit aa25c6dec5
7 changed files with 82 additions and 31 deletions

View File

@@ -108,7 +108,17 @@ export function createOrder(payload: CreateOrderPayload): Promise<OrderResult> {
}, true)
}
export type OrderStatus = 'pending' | 'completed' | 'cancelled' | 'failed'
export type OrderStatus = 'pending' | 'rejected' | 'completed' | 'cancelled' | 'error'
export type PaymentStatus =
| 'pending'
| 'money_accepted'
| 'web3_processing'
| 'web3_hash_error'
| 'web3_balance_problem'
| 'receipt_error'
| 'completed'
| 'usdt_delivered'
export interface Order {
id: string
@@ -140,7 +150,7 @@ export interface Payment {
updated_at: string
user_id: string
order_id: string
status: OrderStatus
status: PaymentStatus
receipt_cloudekassir_id: string
receipt_cloudekassir_link: string
itpay_payment_id: string