@paynext/sdk 1.0.7 → 1.0.8

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +32 -2
  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
- paymentMethod: {
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,48 @@ declare interface CheckoutTranslateOverrides {
112
115
  button?: string;
113
116
  };
114
117
  };
115
- paymentMethod?: {
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
+ }
159
+
132
160
  declare enum DeclineCode {
133
161
  INSUFFICIENT_FUNDS = "insufficient_funds",
134
162
  AUTHENTICATION_REQUIRED = "authentication_required",
@@ -393,6 +421,7 @@ export declare interface PayNextConfig {
393
421
  translate?: CheckoutTranslateOverrides;
394
422
  locale?: Locale;
395
423
  errorMessageText?: string;
424
+ returnUrl?: string;
396
425
  onCheckoutLoaded?: (result: LoadedResult) => void;
397
426
  onCheckoutAttempt?: (result: AttemptResult) => void;
398
427
  onCheckoutComplete?: (result: PaymentResult) => void;
@@ -413,6 +442,7 @@ export declare interface StylesConfig {
413
442
  BraintreeButton?: HTMLStyles;
414
443
  CashAppButton?: HTMLStyles;
415
444
  BackButton?: HTMLStyles;
445
+ cssVariables?: CSSVariablesConfig;
416
446
  }
417
447
 
418
448
  export declare type TEnvironment = 'develop' | 'staging' | 'sandbox' | 'production';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynext/sdk",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "PayNext SDK - Payment processing with automatic CDN loading",
5
5
  "type": "module",
6
6
  "main": "dist/index.es.js",