@paynext/sdk 1.0.7 → 1.0.9
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 +33 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -58,18 +58,21 @@ export declare interface CheckoutTranslate {
|
|
|
58
58
|
button: string;
|
|
59
59
|
};
|
|
60
60
|
};
|
|
61
|
-
|
|
61
|
+
savedPaymentMethod: {
|
|
62
62
|
change: {
|
|
63
63
|
button: string;
|
|
64
|
+
select: string;
|
|
64
65
|
};
|
|
65
66
|
pay: {
|
|
66
67
|
button: string;
|
|
67
68
|
};
|
|
69
|
+
separator: string;
|
|
68
70
|
};
|
|
69
71
|
status: {
|
|
70
72
|
error: string;
|
|
71
73
|
invalidSession: string;
|
|
72
74
|
authenticationFailed: string;
|
|
75
|
+
errorSavedPaymentMethod: string;
|
|
73
76
|
};
|
|
74
77
|
}
|
|
75
78
|
|
|
@@ -112,23 +115,49 @@ declare interface CheckoutTranslateOverrides {
|
|
|
112
115
|
button?: string;
|
|
113
116
|
};
|
|
114
117
|
};
|
|
115
|
-
|
|
118
|
+
savedPaymentMethod?: {
|
|
116
119
|
change?: {
|
|
117
120
|
button?: string;
|
|
121
|
+
select?: string;
|
|
118
122
|
};
|
|
119
123
|
pay?: {
|
|
120
124
|
button?: string;
|
|
121
125
|
};
|
|
126
|
+
separator?: string;
|
|
122
127
|
};
|
|
123
128
|
status?: {
|
|
124
129
|
error?: string;
|
|
125
130
|
invalidSession?: string;
|
|
126
131
|
authenticationFailed?: string;
|
|
132
|
+
errorSavedPaymentMethod?: string;
|
|
127
133
|
};
|
|
128
134
|
}
|
|
129
135
|
|
|
130
136
|
declare type CSSProperties = Record<string, string>;
|
|
131
137
|
|
|
138
|
+
export declare interface CSSVariablesConfig {
|
|
139
|
+
'--paynext-sdk-bg'?: string;
|
|
140
|
+
'--paynext-sdk-text'?: string;
|
|
141
|
+
'--paynext-sdk-border'?: string;
|
|
142
|
+
'--paynext-sdk-border-focus'?: string;
|
|
143
|
+
'--paynext-sdk-border-radius'?: string;
|
|
144
|
+
'--paynext-sdk-input-bg'?: string;
|
|
145
|
+
'--paynext-sdk-input-text'?: string;
|
|
146
|
+
'--paynext-sdk-input-focus-shadow'?: string;
|
|
147
|
+
'--paynext-sdk-placeholder'?: string;
|
|
148
|
+
'--paynext-sdk-error'?: string;
|
|
149
|
+
'--paynext-sdk-error-border'?: string;
|
|
150
|
+
'--paynext-sdk-disabled-bg'?: string;
|
|
151
|
+
'--paynext-sdk-disabled-text'?: string;
|
|
152
|
+
'--paynext-sdk-button-bg'?: string;
|
|
153
|
+
'--paynext-sdk-button-text'?: string;
|
|
154
|
+
'--paynext-sdk-button-hover-bg'?: string;
|
|
155
|
+
'--paynext-sdk-button-hover-opacity'?: string;
|
|
156
|
+
'--paynext-sdk-card-bg'?: string;
|
|
157
|
+
'--paynext-sdk-card-icon'?: string;
|
|
158
|
+
'--paynext-sdk-success-icon'?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
132
161
|
declare enum DeclineCode {
|
|
133
162
|
INSUFFICIENT_FUNDS = "insufficient_funds",
|
|
134
163
|
AUTHENTICATION_REQUIRED = "authentication_required",
|
|
@@ -393,6 +422,7 @@ export declare interface PayNextConfig {
|
|
|
393
422
|
translate?: CheckoutTranslateOverrides;
|
|
394
423
|
locale?: Locale;
|
|
395
424
|
errorMessageText?: string;
|
|
425
|
+
returnUrl?: string;
|
|
396
426
|
onCheckoutLoaded?: (result: LoadedResult) => void;
|
|
397
427
|
onCheckoutAttempt?: (result: AttemptResult) => void;
|
|
398
428
|
onCheckoutComplete?: (result: PaymentResult) => void;
|
|
@@ -413,6 +443,7 @@ export declare interface StylesConfig {
|
|
|
413
443
|
BraintreeButton?: HTMLStyles;
|
|
414
444
|
CashAppButton?: HTMLStyles;
|
|
415
445
|
BackButton?: HTMLStyles;
|
|
446
|
+
cssVariables?: CSSVariablesConfig;
|
|
416
447
|
}
|
|
417
448
|
|
|
418
449
|
export declare type TEnvironment = 'develop' | 'staging' | 'sandbox' | 'production';
|