@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.
- package/lib/dts/types/index.d.ts +3 -1
- package/lib/index.d.ts +3 -1
- package/package.json +1 -1
package/lib/dts/types/index.d.ts
CHANGED
|
@@ -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?:
|
|
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?:
|
|
301
|
+
mode?: Mode
|
|
300
302
|
throwOnSubmitFailure?: boolean
|
|
301
303
|
paymentFailurePopupConfig?: {
|
|
302
304
|
sessionExpiredPopupText?: string
|