Move e-payment to Settings and add ZarinPal credentials.
Gateway config now lives on the general Settings page, with Mellat fields in a 3-column layout and ZarinPal available at checkout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
9a59bc8f65
commit
e79211e3cd
@@ -36,6 +36,12 @@ export interface MellatGatewaySettings {
|
||||
passwordSet?: boolean
|
||||
}
|
||||
|
||||
export interface ZarinpalGatewaySettings {
|
||||
enabled: boolean
|
||||
merchantId: string
|
||||
sandbox: boolean
|
||||
}
|
||||
|
||||
export interface StubGatewaySettings {
|
||||
enabled: boolean
|
||||
}
|
||||
@@ -48,7 +54,7 @@ export interface EPaymentSettings {
|
||||
sep: StubGatewaySettings
|
||||
snappay: StubGatewaySettings
|
||||
digipay: StubGatewaySettings
|
||||
zarinpal: StubGatewaySettings
|
||||
zarinpal: ZarinpalGatewaySettings
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,7 +78,11 @@ export const DEFAULT_EPAYMENT_SETTINGS: EPaymentSettings = {
|
||||
sep: { enabled: false },
|
||||
snappay: { enabled: false },
|
||||
digipay: { enabled: false },
|
||||
zarinpal: { enabled: false },
|
||||
zarinpal: {
|
||||
enabled: false,
|
||||
merchantId: '',
|
||||
sandbox: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user