@pay-com/js 1.1.12 → 1.1.13

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.
@@ -251,6 +251,8 @@ export type FailureError = {
251
251
  data?: Record<string, unknown>
252
252
  }
253
253
 
254
+ export type Mode = 'integrated' | 'modal'
255
+
254
256
  export type Locale =
255
257
  | 'en-US'
256
258
  | 'en-GB'
@@ -291,7 +293,7 @@ export interface CheckoutOpts {
291
293
  amount?: string
292
294
  onSuccess?: (payment: Record<string, unknown>) => void
293
295
  onFailure?: (error: FailureError) => void
294
- mode?: modeOpts
296
+ mode?: Mode
295
297
  throwOnSubmitFailure?: boolean
296
298
  paymentFailurePopupConfig?: {
297
299
  sessionExpiredPopupText?: string
package/lib/index.d.ts CHANGED
@@ -256,6 +256,8 @@ type FailureError = {
256
256
  data?: Record<string, unknown>
257
257
  }
258
258
 
259
+ type Mode = 'integrated' | 'modal'
260
+
259
261
  type Locale =
260
262
  | 'en-US'
261
263
  | 'en-GB'
@@ -296,7 +298,7 @@ interface CheckoutOpts {
296
298
  amount?: string
297
299
  onSuccess?: (payment: Record<string, unknown>) => void
298
300
  onFailure?: (error: FailureError) => void
299
- mode?: modeOpts
301
+ mode?: Mode
300
302
  throwOnSubmitFailure?: boolean
301
303
  paymentFailurePopupConfig?: {
302
304
  sessionExpiredPopupText?: string
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.13",
4
4
  "description": "Pay.com JS loading utility",
5
5
  "keywords": [
6
6
  "Pay.com",