@paynext/sdk 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,9 @@ export declare interface AttemptResult {
|
|
|
7
7
|
|
|
8
8
|
export declare enum CardType {
|
|
9
9
|
Visa = "visa",
|
|
10
|
-
Mastercard = "mastercard"
|
|
10
|
+
Mastercard = "mastercard",
|
|
11
|
+
Discover = "discover",
|
|
12
|
+
JCB = "jcb"
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
export declare interface CheckoutError {
|
|
@@ -483,6 +485,7 @@ export declare interface PayNextConfig {
|
|
|
483
485
|
returnUrl?: string;
|
|
484
486
|
onCheckoutLoaded?: (result: LoadedResult) => void;
|
|
485
487
|
onCheckoutAttempt?: (result: AttemptResult) => void;
|
|
488
|
+
beforeCheckoutAttempt?: (result: AttemptResult) => boolean | Promise<boolean>;
|
|
486
489
|
onCheckoutComplete?: (result: PaymentResult) => void;
|
|
487
490
|
onCheckoutFail?: (error: CheckoutError) => void;
|
|
488
491
|
}
|
|
@@ -506,7 +509,7 @@ export declare interface StylesConfig {
|
|
|
506
509
|
cssVariables?: CSSVariablesConfig;
|
|
507
510
|
}
|
|
508
511
|
|
|
509
|
-
export declare type TEnvironment = 'develop' | 'preview1' | 'preview2' | 'staging' | 'sandbox' | 'production';
|
|
512
|
+
export declare type TEnvironment = 'develop' | 'preview1' | 'preview2' | 'preview3' | 'staging' | 'sandbox' | 'production';
|
|
510
513
|
|
|
511
514
|
export declare type ThemeMode = 'light' | 'dark' | 'system';
|
|
512
515
|
|