payment
This commit is contained in:
+13
-1
@@ -1,14 +1,26 @@
|
||||
export enum PaymentStatus {
|
||||
export enum PaymentMethodEnum {
|
||||
Online = 'Online',
|
||||
Cash = 'Cash',
|
||||
CardOnDelivery = 'CardOnDelivery',
|
||||
Wallet = 'Wallet',
|
||||
}
|
||||
export enum PaymentStatusEnum {
|
||||
Pending = 'pending',
|
||||
Paid = 'paid',
|
||||
Failed = 'failed',
|
||||
}
|
||||
export enum PaymentGatewayEnum {
|
||||
ZarinPal = 'zarinpal',
|
||||
}
|
||||
|
||||
export interface IPaymentRequest {
|
||||
amount: number;
|
||||
callbackUrl: string;
|
||||
merchantId: string;
|
||||
description: string;
|
||||
metadata: {
|
||||
orderId: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface IPaymentResponse {
|
||||
Reference in New Issue
Block a user