refactor order craetion

This commit is contained in:
2025-12-17 15:36:04 +03:30
parent 26220dbb8b
commit bfb7441a0c
7 changed files with 180 additions and 78 deletions
+9 -7
View File
@@ -41,12 +41,14 @@ export interface IZarinpalRequestPayment {
referrer_id?: string;
}
export interface IZarinpalPaymentResponse {
code: number;
message: string;
authority: string;
fee_type: string;
fee: number;
errors: [];
data: {
code: number;
message: string;
authority: string;
fee_type: string;
fee: number;
};
errors: unknown[];
}
export interface IZarinpalVerifyRequest {
merchant_id: string;
@@ -63,5 +65,5 @@ export interface IZarinpalVerifyResponse {
fee_type: string;
fee: number;
};
errors: [];
errors: unknown[];
}