@pay-com/js 1.1.12 → 1.1.14

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.
@@ -146,6 +146,11 @@ export interface UniversalToggles {
146
146
  * A title to display above the Universal form.
147
147
  */
148
148
  title?: string
149
+
150
+ /**
151
+ * If false, the form will render without the save for future usage checkbox.
152
+ */
153
+ disableSetupFutureUsageCheckbox?: boolean
149
154
  }
150
155
 
151
156
  export type LanguageLocalizationOverride = {
@@ -251,6 +256,8 @@ export type FailureError = {
251
256
  data?: Record<string, unknown>
252
257
  }
253
258
 
259
+ export type Mode = 'integrated' | 'modal'
260
+
254
261
  export type Locale =
255
262
  | 'en-US'
256
263
  | 'en-GB'
@@ -291,7 +298,7 @@ export interface CheckoutOpts {
291
298
  amount?: string
292
299
  onSuccess?: (payment: Record<string, unknown>) => void
293
300
  onFailure?: (error: FailureError) => void
294
- mode?: modeOpts
301
+ mode?: Mode
295
302
  throwOnSubmitFailure?: boolean
296
303
  paymentFailurePopupConfig?: {
297
304
  sessionExpiredPopupText?: string
@@ -434,6 +441,7 @@ export type UpdateTransactionDetailsOpts = {
434
441
 
435
442
  export type PayOpts = {
436
443
  source: string
444
+ cvv?: string
437
445
  }
438
446
 
439
447
  export type PayFn = (Opts: PayOpts) => Promise<unknown>
package/lib/index.d.ts CHANGED
@@ -151,6 +151,11 @@ interface UniversalToggles {
151
151
  * A title to display above the Universal form.
152
152
  */
153
153
  title?: string
154
+
155
+ /**
156
+ * If false, the form will render without the save for future usage checkbox.
157
+ */
158
+ disableSetupFutureUsageCheckbox?: boolean
154
159
  }
155
160
 
156
161
  type LanguageLocalizationOverride = {
@@ -256,6 +261,8 @@ type FailureError = {
256
261
  data?: Record<string, unknown>
257
262
  }
258
263
 
264
+ type Mode = 'integrated' | 'modal'
265
+
259
266
  type Locale =
260
267
  | 'en-US'
261
268
  | 'en-GB'
@@ -296,7 +303,7 @@ interface CheckoutOpts {
296
303
  amount?: string
297
304
  onSuccess?: (payment: Record<string, unknown>) => void
298
305
  onFailure?: (error: FailureError) => void
299
- mode?: modeOpts
306
+ mode?: Mode
300
307
  throwOnSubmitFailure?: boolean
301
308
  paymentFailurePopupConfig?: {
302
309
  sessionExpiredPopupText?: string
@@ -433,6 +440,7 @@ type UpdateTransactionDetailsOpts = {
433
440
 
434
441
  type PayOpts = {
435
442
  source: string
443
+ cvv?: string
436
444
  }
437
445
 
438
446
  type PayFn = (Opts: PayOpts) => Promise<unknown>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pay-com/js",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "Pay.com JS loading utility",
5
5
  "keywords": [
6
6
  "Pay.com",