@paydock/client-sdk 1.143.0-beta → 1.144.0-beta

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 (72) hide show
  1. package/README.md +158 -0
  2. package/bundles/index.cjs +523 -312
  3. package/bundles/index.cjs.d.ts +751 -116
  4. package/bundles/index.mjs +518 -313
  5. package/bundles/index.mjs.d.ts +751 -116
  6. package/bundles/types/api/api-charge-internal.d.ts +3 -49
  7. package/bundles/types/api/api-charge-internal.d.ts.map +1 -1
  8. package/bundles/types/api/api-checkout-internal.d.ts +1 -47
  9. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api-shared-types.d.ts +53 -0
  11. package/bundles/types/api/api-shared-types.d.ts.map +1 -0
  12. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts +95 -0
  13. package/bundles/types/canvas-3ds/canvas-3ds-event-map.d.ts.map +1 -0
  14. package/bundles/types/canvas-3ds/canvas-3ds.d.ts +10 -7
  15. package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -1
  16. package/bundles/types/canvas-3ds/index.d.ts +4 -0
  17. package/bundles/types/canvas-3ds/index.d.ts.map +1 -1
  18. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts +41 -12
  19. package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -1
  20. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts +20 -2
  21. package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -1
  22. package/bundles/types/checkout/checkout-event-map.d.ts +43 -0
  23. package/bundles/types/checkout/checkout-event-map.d.ts.map +1 -0
  24. package/bundles/types/checkout/checkout.d.ts +25 -9
  25. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  26. package/bundles/types/checkout/v1/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  27. package/bundles/types/checkout/v3/instructions/instruction.canvas_3ds.show.d.ts.map +1 -1
  28. package/bundles/types/components/param.d.ts +29 -0
  29. package/bundles/types/components/param.d.ts.map +1 -1
  30. package/bundles/types/helper/event-error.d.ts +49 -1
  31. package/bundles/types/helper/event-error.d.ts.map +1 -1
  32. package/bundles/types/index-cba.d.ts +3 -1
  33. package/bundles/types/index-cba.d.ts.map +1 -1
  34. package/bundles/types/index.d.ts +12 -1
  35. package/bundles/types/index.d.ts.map +1 -1
  36. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +37 -0
  37. package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -1
  38. package/bundles/types/open-wallets/base/open-wallet.service.d.ts +12 -0
  39. package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -1
  40. package/bundles/types/open-wallets/google-pay-open-wallet-button.d.ts.map +1 -1
  41. package/bundles/types/open-wallets/index.d.ts +25 -0
  42. package/bundles/types/open-wallets/index.d.ts.map +1 -1
  43. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +2 -2
  44. package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -1
  45. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +1 -1
  46. package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -1
  47. package/bundles/types/open-wallets/interfaces/events.interface.d.ts +1 -1
  48. package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
  49. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +46 -0
  50. package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -1
  51. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +48 -2
  52. package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
  53. package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -1
  54. package/bundles/types/open-wallets/types/index.d.ts +1 -1
  55. package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
  56. package/bundles/types/open-wallets/types/payment-source.type.d.ts +104 -0
  57. package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -1
  58. package/bundles/types/wallet-buttons/interfaces.d.ts +55 -1
  59. package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -1
  60. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts +7 -0
  61. package/bundles/types/wallet-buttons-express/interfaces/base-wallet-meta.interface.d.ts.map +1 -1
  62. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +23 -0
  63. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  64. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts +31 -0
  65. package/bundles/types/wallet-buttons-express/services/paypal/interfaces/paypal-wallet-meta.interface.d.ts.map +1 -1
  66. package/bundles/widget.umd.js +523 -312
  67. package/bundles/widget.umd.js.d.ts +751 -116
  68. package/bundles/widget.umd.js.min.d.ts +751 -116
  69. package/bundles/widget.umd.min.js +1 -1
  70. package/docs/api-canvas3ds.md +19 -12
  71. package/docs/open-wallet-buttons.md +158 -0
  72. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
- import { ApiInternal } from './api-internal';
1
+ import type { ApiInternal } from './api-internal';
2
+ import type { HandleResponseInterface, ProcessAuthenticationResponse } from './api-shared-types';
3
+ export type { HandleResponseInterface, ProcessAuthenticationResponse, } from './api-shared-types';
2
4
  export declare class ApiChargeInternal {
3
5
  protected api: ApiInternal;
4
6
  constructor(api: ApiInternal);
@@ -48,52 +50,4 @@ interface WalletCallbackResponse {
48
50
  interface Standalone3dsProcessBody {
49
51
  charge_3ds_id: string;
50
52
  }
51
- export interface HandleResponseInterface {
52
- status: string;
53
- error: string;
54
- result: {
55
- reference: string;
56
- reference_2: string;
57
- identifier: string;
58
- identifier_2: string;
59
- identifier_3: string;
60
- identifier_4: string;
61
- identifier_5: string;
62
- type: string;
63
- status: string;
64
- status_2: string;
65
- status_code: string;
66
- ref_token: string;
67
- cancellation: string;
68
- count: string;
69
- version: string;
70
- whitelist: {
71
- status: string;
72
- source: string;
73
- };
74
- result: string;
75
- };
76
- }
77
- export interface ProcessAuthenticationResponse {
78
- status: string;
79
- error?: string;
80
- result?: {
81
- challenge: string;
82
- challenge_url: string;
83
- decoupled_challenge: boolean;
84
- frictionless: boolean;
85
- identifier: string;
86
- identifier_3: string;
87
- identifier_4: string;
88
- reference: string;
89
- reference_2: string;
90
- secondary_url: string;
91
- skipped: boolean;
92
- status: string;
93
- type: string;
94
- version: string;
95
- description?: string;
96
- };
97
- }
98
- export {};
99
53
  //# sourceMappingURL=api-charge-internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-charge-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-charge-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAO7C,qBAAa,iBAAiB;IACd,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAGtC,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAMzE,cAAc,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAM5E,oBAAoB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,6BAA6B,CAAC;IAM/F,mBAAmB,IAAI,OAAO,CAAC,uBAAuB,CAAC;CAK1D;AAED,UAAU,qBAAqB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,iBAAiB;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE;QACP,cAAc,CAAC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AM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAC,MAAM,CAAC;QACf,SAAS,EAAE;YACP,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;KAClB,CAAA;CACJ;AAED,MAAM,WAAW,6BAA6B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,OAAO,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"}
1
+ {"version":3,"file":"api-charge-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-charge-internal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EACV,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAO5B,qBAAa,iBAAiB;IAChB,SAAS,CA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B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,wBAAwB;IAChC,aAAa,EAAE,MAAM,CAAC;CACvB"}
@@ -1,5 +1,6 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { ApiInternal } from './api-internal';
3
+ export type { HandleResponseInterface, ProcessAuthenticationResponse, } from './api-shared-types';
3
4
  export declare class ApiCheckoutInternal {
4
5
  protected api: ApiInternal;
5
6
  constructor(api: ApiInternal);
@@ -8,51 +9,4 @@ export declare class ApiCheckoutInternal {
8
9
  callback(payload: Object): Promise<Object>;
9
10
  status(id: string): Promise<Object>;
10
11
  }
11
- export interface HandleResponseInterface {
12
- status: string;
13
- error: string;
14
- result: {
15
- reference: string;
16
- reference_2: string;
17
- identifier: string;
18
- identifier_2: string;
19
- identifier_3: string;
20
- identifier_4: string;
21
- identifier_5: string;
22
- type: string;
23
- status: string;
24
- status_2: string;
25
- status_code: string;
26
- ref_token: string;
27
- cancellation: string;
28
- count: string;
29
- version: string;
30
- whitelist: {
31
- status: string;
32
- source: string;
33
- };
34
- result: string;
35
- };
36
- }
37
- export interface ProcessAuthenticationResponse {
38
- status: string;
39
- error?: string;
40
- result?: {
41
- challenge: string;
42
- challenge_url: string;
43
- decoupled_challenge: boolean;
44
- frictionless: boolean;
45
- identifier: string;
46
- identifier_3: string;
47
- identifier_4: string;
48
- reference: string;
49
- reference_2: string;
50
- secondary_url: string;
51
- skipped: boolean;
52
- status: string;
53
- type: string;
54
- version: string;
55
- description?: string;
56
- };
57
- }
58
12
  //# sourceMappingURL=api-checkout-internal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-checkout-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-checkout-internal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,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B,mBAAmB,EAAE,OAAO,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
1
+ {"version":3,"file":"api-checkout-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-checkout-internal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,YAAY,EACV,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;AAM5B,qBAAa,mBAAmB;IAClB,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAE/B,YAAY,IAAI,UAAU,CAAC,MAAM,CAAC;IAQzC,OAAO,CAAC,kBAAkB,CAExB;IAEK,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAM1C,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAK3C"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Canonical shared response shapes used by both Charge and Checkout internal APIs.
3
+ * Extracted here to remove the prior duplicated definitions in
4
+ * api-charge-internal.ts and api-checkout-internal.ts.
5
+ */
6
+ export interface HandleResponseInterface {
7
+ status: string;
8
+ error: string;
9
+ result: {
10
+ reference: string;
11
+ reference_2: string;
12
+ identifier: string;
13
+ identifier_2: string;
14
+ identifier_3: string;
15
+ identifier_4: string;
16
+ identifier_5: string;
17
+ type: string;
18
+ status: string;
19
+ status_2: string;
20
+ status_code: string;
21
+ ref_token: string;
22
+ cancellation: string;
23
+ count: string;
24
+ version: string;
25
+ whitelist: {
26
+ status: string;
27
+ source: string;
28
+ };
29
+ result: string;
30
+ };
31
+ }
32
+ export interface ProcessAuthenticationResponse {
33
+ status: string;
34
+ error?: string;
35
+ result?: {
36
+ challenge: string;
37
+ challenge_url: string;
38
+ decoupled_challenge: boolean;
39
+ frictionless: boolean;
40
+ identifier: string;
41
+ identifier_3: string;
42
+ identifier_4: string;
43
+ reference: string;
44
+ reference_2: string;
45
+ secondary_url: string;
46
+ skipped: boolean;
47
+ status: string;
48
+ type: string;
49
+ version: string;
50
+ description?: string;
51
+ };
52
+ }
53
+ //# sourceMappingURL=api-shared-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-shared-types.d.ts","sourceRoot":"","sources":["../../src/api/api-shared-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;QAClB,YAAY,EAAE,MAAM,CAAC;QACrB,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE;YACT,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACP,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,OAAO,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;CACH"}
@@ -0,0 +1,95 @@
1
+ import type { IEventData } from '../components/iframe-event';
2
+ /**
3
+ * Payload emitted by the Standalone 3DS flow for auth-related events
4
+ * (chargeAuthSuccess, chargeAuthReject, chargeAuthChallenge, chargeAuthDecoupled).
5
+ */
6
+ export interface Canvas3dsAuthPayload {
7
+ /** The Paydock 3DS charge identifier (e.g. `'chrg_3ds_xxxxx'`) used to correlate the authentication with the underlying charge. */
8
+ charge_3ds_id: string;
9
+ /** Authentication outcome status reported by the 3DS provider (e.g. `'authenticated'`, `'rejected'`, `'pending'`). */
10
+ status: string;
11
+ /** Optional result details. Present when the 3DS provider returns additional context for the outcome. */
12
+ result?: {
13
+ /** Human-readable description of the outcome (e.g. `'frictionless'`). */
14
+ description?: string;
15
+ };
16
+ }
17
+ /**
18
+ * Payload emitted by the Standalone 3DS flow for error events.
19
+ * `error` is intentionally `unknown` — upstream emitters do not guarantee a shape.
20
+ */
21
+ export interface Canvas3dsErrorPayload {
22
+ /** The Paydock 3DS charge identifier associated with the failed authentication attempt. */
23
+ charge_3ds_id: string;
24
+ /** The underlying error. Typed as `unknown` to force the consumer to narrow it before use. */
25
+ error: unknown;
26
+ }
27
+ /**
28
+ * Payload emitted by the iframe-based 3DS flow for auth-related events
29
+ * (`chargeAuth`, `chargeAuthSuccess`, `chargeAuthReject`).
30
+ *
31
+ * Extends `IEventData` with optional 3DS-specific fields that the widget
32
+ * merges into the message envelope for charge correlation.
33
+ */
34
+ export interface Canvas3dsChargeAuthEventPayload extends IEventData {
35
+ /** The Paydock 3DS charge identifier. Present when the widget correlates the event with a charge. */
36
+ charge_3ds_id?: string;
37
+ /** Authentication outcome status reported by the widget (e.g. `'authenticated'`, `'server_error'`). */
38
+ status?: string;
39
+ /** Optional result details forwarded from the 3DS provider. */
40
+ result?: {
41
+ /** Human-readable description of the outcome (e.g. `'frictionless'`). */
42
+ description?: string;
43
+ };
44
+ }
45
+ /**
46
+ * Payload emitted by the iframe-based 3DS flow for error events.
47
+ * Extends `IEventData` with optional 3DS-specific fields for charge correlation.
48
+ */
49
+ export interface Canvas3dsErrorEventPayload extends IEventData {
50
+ /** The Paydock 3DS charge identifier associated with the error. */
51
+ charge_3ds_id?: string;
52
+ }
53
+ /**
54
+ * Maps Canvas3ds event names to their callback data types.
55
+ *
56
+ * Events that can fire from both the iframe (html/url) and standalone flows
57
+ * use a union to accommodate both shapes. Standalone-only and iframe-only events
58
+ * use a single payload type.
59
+ */
60
+ export interface Canvas3dsEventMap {
61
+ /** Successful authentication. Standalone path emits `Canvas3dsAuthPayload`; iframe path emits `Canvas3dsChargeAuthEventPayload`. Narrow with `'event' in data` for iframe vs standalone. */
62
+ chargeAuthSuccess: Canvas3dsAuthPayload | Canvas3dsChargeAuthEventPayload;
63
+ /** Rejected authentication. Same dual-emit pattern as `chargeAuthSuccess`. */
64
+ chargeAuthReject: Canvas3dsAuthPayload | Canvas3dsChargeAuthEventPayload;
65
+ /** Authentication or processing error. Standalone path emits `Canvas3dsErrorPayload`; iframe path emits `Canvas3dsErrorEventPayload`. */
66
+ error: Canvas3dsErrorPayload | Canvas3dsErrorEventPayload;
67
+ /** Challenge required — issuer demands user interaction (OTP, biometric, etc.). Standalone-only. */
68
+ chargeAuthChallenge: Canvas3dsAuthPayload;
69
+ /** Decoupled authentication — issuer will authenticate out-of-band and notify later. Standalone-only. */
70
+ chargeAuthDecoupled: Canvas3dsAuthPayload;
71
+ /** Iframe-path authentication event. Extends `IEventData` with optional 3DS correlation fields (`charge_3ds_id`, `status`). */
72
+ chargeAuth: Canvas3dsChargeAuthEventPayload;
73
+ /** User cancelled the authentication flow before completion. Iframe-only. */
74
+ chargeAuthCancelled: IEventData;
75
+ /** Additional data collection step completed successfully. Iframe-only. */
76
+ additionalDataCollectSuccess: IEventData;
77
+ /** Additional data collection step was rejected. Iframe-only. */
78
+ additionalDataCollectReject: IEventData;
79
+ }
80
+ /** Union of all known Canvas3ds event names. */
81
+ export type Canvas3dsEventName = keyof Canvas3dsEventMap;
82
+ /**
83
+ * Public, tree-shakeable alias for the internal `TOKEN_FORMAT` enum in canvas-3ds.ts.
84
+ * Mirrors the string values of that enum without exposing the private enum itself.
85
+ */
86
+ export declare const Canvas3dsTokenFormat: {
87
+ /** Token whose `content` is a complete HTML page. The SDK renders it inside an iframe. */
88
+ readonly HTML: "html";
89
+ /** Token whose `content` is a URL. The SDK loads it inside an iframe. */
90
+ readonly URL: "url";
91
+ /** Token whose `content` describes a standalone 3DS service (e.g. GPayments). The SDK delegates to that service's flow. */
92
+ readonly STANDALONE_3DS: "standalone_3ds";
93
+ };
94
+ export type Canvas3dsTokenFormat = (typeof Canvas3dsTokenFormat)[keyof typeof Canvas3dsTokenFormat];
95
+ //# sourceMappingURL=canvas-3ds-event-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"canvas-3ds-event-map.d.ts","sourceRoot":"","sources":["../../src/canvas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A6E;IAC7E,mBAAmB,EAAE,UAAU,CAAC;IAChC,2EAA2E;IAC3E,4BAA4B,EAAE,UAAU,CAAC;IACzC,iEAAiE;IACjE,2BAA2B,EAAE,UAAU,CAAC;CACzC;AAED,gDAAgD;AAChD,MAAM,MAAM,kBAAkB,GAAG,MAAM,iBAAiB,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B,0FAA0F;;IAE1F,yEAAyE;;IAEzE,2HAA2H;;CAEnH,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC9B,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC"}
@@ -1,10 +1,11 @@
1
- import { Link } from '../components/link';
1
+ import { Standalone3dsService } from '../canvas-3ds/services/index';
2
2
  import { Container } from '../components/container';
3
3
  import { IFrame } from '../components/iframe';
4
- import { IEventData, IFrameEvent } from '../components/iframe-event';
5
- import { Configuration } from '../widget/configuration';
6
- import { Standalone3dsService } from '../canvas-3ds/services/index';
7
- import { EventEmitter } from "../helper/event-emitter";
4
+ import { type IEventData, IFrameEvent } from '../components/iframe-event';
5
+ import { Link } from '../components/link';
6
+ import { EventEmitter } from '../helper/event-emitter';
7
+ import type { Configuration } from '../widget/configuration';
8
+ import type { Canvas3dsEventMap } from './canvas-3ds-event-map';
8
9
  /**
9
10
  * List of available token's content formats
10
11
  * @enum TOKEN_FORMAT
@@ -39,7 +40,7 @@ declare enum TOKEN_FORMAT {
39
40
  * @param {string} CHARGE_AUTH_CHALLENGE=chargeAuthChallenge
40
41
  * @param {string} CHARGE_AUTH_INFO=chargeAuthInfo
41
42
  * @param {string} ERROR=error
42
- */
43
+ */
43
44
  /**
44
45
  * Class Canvas3ds include method for working on html
45
46
  * @constructor
@@ -87,8 +88,10 @@ declare class Canvas3ds {
87
88
  */
88
89
  setEnv(env: string, alias?: string): void;
89
90
  getEnv(): string;
91
+ on<E extends keyof Canvas3dsEventMap>(eventName: E, cb: (data: Canvas3dsEventMap[E]) => void): void;
92
+ on<E extends keyof Canvas3dsEventMap>(eventName: E): Promise<Canvas3dsEventMap[E]>;
93
+ on(eventName: string, cb: (data: IEventData) => void): void;
90
94
  on(eventName: string): Promise<IEventData>;
91
- on(eventName: string, cb: (data: IEventData) => void): any;
92
95
  /**
93
96
  * Using this method you can hide widget after load
94
97
  * @param {boolean} [saveSize=false] - using this param you can save iframe's size
@@ -1 +1 @@
1
- {"version":3,"file":"canvas-3ds.d.ts","sourceRoot":"","sources":["../../src/canvas-3ds/canvas-3ds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAa,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD;;;;;;GAMG;AACH,aAAK,YAAY;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,cAAc,mBAAmB;CACpC;AAGD;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;EAWE;AAEF;;;;;;;;;;GAUG;AACH,cAAM,SAAS;IAEX,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,CAAM;IACxC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,KAAK,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,YAAY,CAAC;QAAC,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC;IAElF,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACrD,SAAS,CA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,SAAS,MAAM,iBAAiB,EACzC,SAAS,EAAE,CAAC,EACZ,EAAE,EAAE,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC,CAAC,KAAK,IAAI,GACvC,IAAI;IACA,EAAE,CAAC,CAAC,SAAS,MAAM,iBAAiB,EACzC,SAAS,EAAE,CAAC,GACX,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;IAEzB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,GAAG,IAAI;IAC3D,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IA4CjD;;;OAGG;IACI,IAAI,CAAC,QAAQ,EAAE,OAAO;IAI7B;;;OAGG;IACI,IAAI;IAIX;;;OAGG;IACI,MAAM;CAId;AAED,OAAO,EAAE,SAAS,EAAE,CAAC"}
@@ -1,2 +1,6 @@
1
1
  export { Canvas3ds } from './canvas-3ds';
2
+ export type { Canvas3dsAuthPayload, Canvas3dsChargeAuthEventPayload, Canvas3dsErrorEventPayload, Canvas3dsErrorPayload, Canvas3dsEventMap, Canvas3dsEventName, } from './canvas-3ds-event-map';
3
+ export { Canvas3dsTokenFormat } from './canvas-3ds-event-map';
4
+ export { CANVAS_3DS_EVENT } from './services/gpayments-service';
5
+ export type { ITokenStandalone3DS } from './services/standalone3ds-service';
2
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canvas-3ds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/canvas-3ds/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EACV,oBAAoB,EACpB,+BAA+B,EAC/B,0BAA0B,EAC1B,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -1,21 +1,50 @@
1
- import type { ApiInternal } from "../../api/api-internal";
2
- import { Container } from "../../components/container";
3
- import { IFrame } from "../../components/iframe";
4
- import { IFrameEvent } from "../../components/iframe-event";
5
- import type { EventEmitter } from "../../helper/event-emitter";
6
- import type { ITokenStandalone3DS } from "./standalone3ds-service";
1
+ import type { ApiInternal } from '../../api/api-internal';
2
+ import { Container } from '../../components/container';
3
+ import { IFrame } from '../../components/iframe';
4
+ import { IFrameEvent } from '../../components/iframe-event';
5
+ import type { EventEmitter } from '../../helper/event-emitter';
6
+ import type { ITokenStandalone3DS } from './standalone3ds-service';
7
7
  export declare enum PROCESS_STANDALONE_3DS_STATUS {
8
8
  SUCCESS = "success",
9
9
  ERROR = "error",
10
10
  PENDING = "pending"
11
11
  }
12
+ /**
13
+ * Event name constants emitted during the Standalone 3DS (GPayments) flow.
14
+ * Used internally by `GPaymentsService` and re-exported publicly as `CANVAS_3DS_EVENT`.
15
+ */
12
16
  export declare const GPAYMENTS_EVENT: {
13
- AUTH_SUCCESS: string;
14
- AUTH_ERROR: string;
15
- DECOUPLED: string;
16
- CHALLENGE: string;
17
- INFO: string;
18
- ERROR: string;
17
+ /** Authentication succeeded. Payload: `Canvas3dsAuthPayload`. */
18
+ readonly AUTH_SUCCESS: "chargeAuthSuccess";
19
+ /** Authentication failed — covers issuer rejection, iframe timeout (`AuthTimedOut`), and invalid-event outcomes. Payload: `Canvas3dsAuthPayload`. */
20
+ readonly AUTH_ERROR: "chargeAuthReject";
21
+ /** Decoupled authentication — issuer will authenticate out-of-band. Payload: `Canvas3dsAuthPayload`. */
22
+ readonly DECOUPLED: "chargeAuthDecoupled";
23
+ /** Challenge required — issuer demands user interaction. Payload: `Canvas3dsAuthPayload`. */
24
+ readonly CHALLENGE: "chargeAuthChallenge";
25
+ /** Informational signal emitted by the GPayments flow. Internal — not part of the public typed surface. */
26
+ readonly INFO: "chargeAuthInfo";
27
+ /** Error during the flow (network, parsing, etc.). Payload: `Canvas3dsErrorPayload`. */
28
+ readonly ERROR: "error";
29
+ };
30
+ /**
31
+ * Public alias for GPAYMENTS_EVENT. Same object reference — no behavioral change.
32
+ * Prefer `CANVAS_3DS_EVENT` in public-facing code; `GPAYMENTS_EVENT` remains for
33
+ * backwards-compatible internal usage.
34
+ */
35
+ export declare const CANVAS_3DS_EVENT: {
36
+ /** Authentication succeeded. Payload: `Canvas3dsAuthPayload`. */
37
+ readonly AUTH_SUCCESS: "chargeAuthSuccess";
38
+ /** Authentication failed — covers issuer rejection, iframe timeout (`AuthTimedOut`), and invalid-event outcomes. Payload: `Canvas3dsAuthPayload`. */
39
+ readonly AUTH_ERROR: "chargeAuthReject";
40
+ /** Decoupled authentication — issuer will authenticate out-of-band. Payload: `Canvas3dsAuthPayload`. */
41
+ readonly DECOUPLED: "chargeAuthDecoupled";
42
+ /** Challenge required — issuer demands user interaction. Payload: `Canvas3dsAuthPayload`. */
43
+ readonly CHALLENGE: "chargeAuthChallenge";
44
+ /** Informational signal emitted by the GPayments flow. Internal — not part of the public typed surface. */
45
+ readonly INFO: "chargeAuthInfo";
46
+ /** Error during the flow (network, parsing, etc.). Payload: `Canvas3dsErrorPayload`. */
47
+ readonly ERROR: "error";
19
48
  };
20
49
  export declare class GPaymentsService {
21
50
  protected container: Container;
@@ -1 +1 @@
1
- {"version":3,"file":"gpayments-service.d.ts","sourceRoot":"","sources":["../../../src/canvas-3ds/services/gpayments-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,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,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,EAAE,mBAAmB,EACzE,KAAK,EAAE,MAAM;IAaf,OAAO,CAAC,iBAAiB;IAgCzB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,eAAe;IAUvB,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,aAAa;IAkCrB,OAAO,CAAC,WAAW;IAiBnB,OAAO,CAAC,SAAS;IAqBjB,OAAO,CAAC,qBAAqB;CA0D9B"}
@@ -1,11 +1,29 @@
1
- import { Container } from "../../components/container";
2
- import { EventEmitter } from "../../helper/event-emitter";
1
+ import type { Container } from '../../components/container';
2
+ import type { EventEmitter } from '../../helper/event-emitter';
3
+ /**
4
+ * Decoded payload of the Standalone 3DS charge token (the JWT body) the SDK
5
+ * receives in `Canvas3ds`'s constructor when the token format is `standalone_3ds`.
6
+ *
7
+ * This shape is set by the Paydock backend when minting the token. Integrators
8
+ * who decode the token themselves can use this interface to type the result.
9
+ */
3
10
  export interface ITokenStandalone3DS {
11
+ /** Optional merchant-side correlation identifier carried through from the original charge request. */
4
12
  external_id?: string;
13
+ /** URL of the first iframe the SDK loads to bootstrap the 3DS provider's authentication flow. */
5
14
  initialization_url: string;
15
+ /**
16
+ * @deprecated No longer read by the Standalone 3DS flow. The field is kept
17
+ * on the interface for backwards compatibility with tokens minted by older
18
+ * API versions; it will be removed in a future major release. Prefer
19
+ * `initialization_url` + `secondary_url`.
20
+ */
6
21
  authorization_url?: string;
22
+ /** Optional URL of a secondary iframe used by some providers (e.g. GPayments) for monitoring/polling alongside the main flow. */
7
23
  secondary_url?: string;
24
+ /** The Paydock 3DS charge identifier this token authorizes. Echoed back in every event payload emitted during the flow. */
8
25
  charge_3ds_id: string;
26
+ /** Identifier of the 3DS gateway the SDK should delegate to. Currently only `'GPayments'` is handled; other values fall through. */
9
27
  service_type: string;
10
28
  }
11
29
  export declare class Standalone3dsService {
@@ -1 +1 @@
1
- {"version":3,"file":"standalone3ds-service.d.ts","sourceRoot":"","sources":["../../../src/canvas-3ds/services/standalone3ds-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAIvD,OAAO,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAC;AAQxD,MAAM,WAAW,mBAAmB;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,oBAAoB;IAC7B,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,GAAG,SAAe;IAC5B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEZ,SAAS,EAAE,SAAS,EAAE,YAAY,KAAA;IAKvC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;IAa9C,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;CAI5C"}
1
+ {"version":3,"file":"standalone3ds-service.d.ts","sourceRoot":"","sources":["../../../src/canvas-3ds/services/standalone3ds-service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAG5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAO/D;;;;;;GAMG;AACH,MAAM,WAAW,mBAAmB;IAClC,sGAAsG;IACtG,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iGAAiG;IACjG,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iIAAiI;IACjI,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2HAA2H;IAC3H,aAAa,EAAE,MAAM,CAAC;IACtB,oIAAoI;IACpI,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,oBAAoB;IAC/B,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IACrC,SAAS,CAAC,GAAG,SAAe;IAC5B,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC;gBAEZ,SAAS,EAAE,SAAS,EAAE,YAAY,KAAA;IAKvC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;IAkB9C,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;CAI1C"}
@@ -0,0 +1,43 @@
1
+ import type { IEventData } from '../components/iframe-event';
2
+ /**
3
+ * Payload emitted by `Checkout.onPaymentSuccessful`.
4
+ *
5
+ * Permissively extends `IEventData` because the Checkout emission contract
6
+ * is not yet fully documented (see D8). This gives a named surface that
7
+ * integrators can import while keeping the type backwards-compatible with
8
+ * the raw `IEventData` shape the runtime currently emits.
9
+ */
10
+ export interface CheckoutPaymentSuccessPayload extends IEventData {
11
+ }
12
+ /**
13
+ * Payload emitted by `Checkout.onPaymentFailure`.
14
+ *
15
+ * Permissively extends `IEventData` — same reasoning as
16
+ * `CheckoutPaymentSuccessPayload`. Tighten in a follow-up once the emission
17
+ * contract is confirmed.
18
+ */
19
+ export interface CheckoutPaymentFailurePayload extends IEventData {
20
+ }
21
+ /**
22
+ * Payload emitted by `Checkout.onPaymentExpired`.
23
+ *
24
+ * Permissively extends `IEventData` — same reasoning as
25
+ * `CheckoutPaymentSuccessPayload`.
26
+ */
27
+ export interface CheckoutPaymentExpiredPayload extends IEventData {
28
+ }
29
+ /**
30
+ * Maps Checkout event names to their callback data types.
31
+ * Mirrors the Canvas3dsEventMap / WidgetEventMap pattern.
32
+ */
33
+ export interface CheckoutEventMap {
34
+ /** Emitted when the Checkout flow completes a successful payment. */
35
+ paymentSuccessful: CheckoutPaymentSuccessPayload;
36
+ /** Emitted when a payment attempt fails (declined, gateway error, etc.). */
37
+ paymentFailure: CheckoutPaymentFailurePayload;
38
+ /** Emitted when the checkout intent expires before the user completes payment. */
39
+ paymentExpired: CheckoutPaymentExpiredPayload;
40
+ }
41
+ /** Union of all known Checkout event names. */
42
+ export type CheckoutEventName = keyof CheckoutEventMap;
43
+ //# sourceMappingURL=checkout-event-map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkout-event-map.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout-event-map.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,6BAA8B,SAAQ,UAAU;CAAG;AAEpE;;;;;;GAMG;AACH,MAAM,WAAW,6BAA8B,SAAQ,UAAU;CAAG;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,6BAA8B,SAAQ,UAAU;CAAG;AAEpE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,iBAAiB,EAAE,6BAA6B,CAAC;IACjD,4EAA4E;IAC5E,cAAc,EAAE,6BAA6B,CAAC;IAC9C,kFAAkF;IAClF,cAAc,EAAE,6BAA6B,CAAC;CAC/C;AAED,+CAA+C;AAC/C,MAAM,MAAM,iBAAiB,GAAG,MAAM,gBAAgB,CAAC"}
@@ -3,18 +3,35 @@ import { ApiInternal } from '../api/api-internal';
3
3
  import type { Container } from '../components/container';
4
4
  import type { IEventData } from '../components/iframe-event';
5
5
  import { EventEmitter } from '../helper/event-emitter';
6
+ import type { CheckoutPaymentExpiredPayload, CheckoutPaymentFailurePayload, CheckoutPaymentSuccessPayload } from './checkout-event-map';
6
7
  import type { InstructionDestroyable, InstructionHandleable } from './helpers/instruction-handler';
7
8
  import type { InstructionModule } from './helpers/instruction-module';
9
+ /** Event name emitted when a checkout payment completes successfully. */
10
+ export declare const PAYMENT_SUCCESSFUL = "paymentSuccessful";
11
+ /** Event name emitted when a checkout payment fails. */
12
+ export declare const PAYMENT_FAILURE = "paymentFailure";
13
+ /** Event name emitted when a checkout session expires. */
14
+ export declare const PAYMENT_EXPIRED = "paymentExpired";
8
15
  export declare const EVENT: {
9
16
  PAYMENT_SUCCESSFUL: string;
10
17
  PAYMENT_FAILURE: string;
11
18
  PAYMENT_EXPIRED: string;
12
19
  };
13
- interface IntentTokenPayload {
20
+ /**
21
+ * Decoded payload of the intent JWT the `Checkout` widget receives in its constructor.
22
+ * Issued by the Paydock backend when a checkout intent is created. Integrators who
23
+ * decode the token themselves (e.g. for diagnostics) can use this type to inspect it.
24
+ */
25
+ export interface CheckoutIntentTokenPayload {
26
+ /** Backend environment that minted this token (e.g. `'sandbox'`, `'production'`). */
14
27
  env: string;
28
+ /** The Paydock checkout intent identifier this token authorizes. */
15
29
  intent_id: string;
30
+ /** Token schema version. Used by the SDK for forward/backward compatibility. */
16
31
  version: number;
32
+ /** Human-readable alias for the environment (e.g. `'staging-3'`, `'multitenant-preprod'`). */
17
33
  env_alias: string;
34
+ /** Hostnames the token may be used from. When present, the SDK rejects the token if the current origin is not listed; an absent or empty array allows all origins. */
18
35
  whitelist_domains: string[];
19
36
  }
20
37
  export interface InstructionResponse {
@@ -40,7 +57,7 @@ export declare class Checkout {
40
57
  protected window: Window;
41
58
  protected eventEmitter: EventEmitter;
42
59
  protected container: Container;
43
- protected intentTokenPayload: IntentTokenPayload;
60
+ protected intentTokenPayload: CheckoutIntentTokenPayload;
44
61
  protected api: ApiInternal;
45
62
  protected checkoutApi: ApiCheckoutInternal;
46
63
  protected instructions: InstructionModule;
@@ -54,7 +71,7 @@ export declare class Checkout {
54
71
  fetchInstruction(): void;
55
72
  finaliseCheckout(): void;
56
73
  private setupTimeoutTimer;
57
- private extractIntentTokenPayload;
74
+ private extractCheckoutIntentTokenPayload;
58
75
  validateJWTWhitelistedDomains(whitelist_domains: string[]): boolean;
59
76
  private ready;
60
77
  private initContractVersion;
@@ -73,7 +90,7 @@ export declare class Checkout {
73
90
  * console.log('Payment successful!');
74
91
  * });
75
92
  */
76
- onPaymentSuccessful(handler: (data: IEventData) => void): () => void;
93
+ onPaymentSuccessful<T extends IEventData = CheckoutPaymentSuccessPayload>(handler: (data: T) => void): () => void;
77
94
  /**
78
95
  * If the payment was not successful, the function passed as parameter will be called.
79
96
  * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
@@ -83,19 +100,18 @@ export declare class Checkout {
83
100
  * console.log('Payment not successful');
84
101
  * });
85
102
  */
86
- onPaymentFailure(handler: (data: IEventData) => void): () => void;
103
+ onPaymentFailure<T extends IEventData = CheckoutPaymentFailurePayload>(handler: (data: T) => void): () => void;
87
104
  /**
88
105
  * If the payment was expired, the function passed as parameter will be called.
89
106
  * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
90
107
  *
91
108
  * @example
92
- * widget.onPaymentInReview((data) => {
93
- * console.log('Payment in fraud review');
109
+ * widget.onPaymentExpired((data) => {
110
+ * console.log('Payment session expired');
94
111
  * });
95
112
  */
96
- onPaymentExpired(handler: (data: IEventData) => void): () => void;
113
+ onPaymentExpired<T extends IEventData = CheckoutPaymentExpiredPayload>(handler: (data: T) => void): () => void;
97
114
  createWidgetStructure(): void;
98
115
  private changeLoadingSpinnerVisibility;
99
116
  }
100
- export {};
101
117
  //# sourceMappingURL=checkout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,C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vas_3ds.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v1/instructions/instruction.canvas_3ds.show.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AASvE,qBACa,wBAAyB,SAAQ,kBAAkB;IACvD,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,GAAG,IAAI;IA4FD,OAAO;IAId,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,sBAAsB;CA6B/B"}
1
+ {"version":3,"file":"instruction.canvas_3ds.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v1/instructions/instruction.canvas_3ds.show.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAQvE,qBACa,wBAAyB,SAAQ,kBAAkB;IACvD,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,GAAG,IAAI;IA8FD,OAAO;IAId,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,sBAAsB;CA6B/B"}