@paydock/client-sdk 1.105.1 → 1.106.1
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/README.md +255 -246
- package/bundles/widget.umd.js +1197 -1724
- package/bundles/widget.umd.min.js +1 -1
- package/lib/api/api-service-internal.d.ts +2 -1
- package/lib/api/api-service-internal.js +1 -0
- package/lib/api/api-service-internal.js.map +1 -1
- package/lib/components/iframe-event.d.ts +2 -0
- package/lib/components/iframe-event.js +2 -0
- package/lib/components/iframe-event.js.map +1 -1
- package/lib/components/link.d.ts +3 -2
- package/lib/components/link.js +1 -0
- package/lib/components/link.js.map +1 -1
- package/lib/components/param.d.ts +2 -2
- package/lib/components/param.js.map +1 -1
- package/lib/components/wallet-background.js +12 -0
- package/lib/components/wallet-background.js.map +1 -1
- package/lib/configs/sdk.js +1 -1
- package/lib/secure-remote-commerce/index.d.ts +102 -1
- package/lib/secure-remote-commerce/index.js +102 -1
- package/lib/secure-remote-commerce/index.js.map +1 -1
- package/lib/secure-remote-commerce/interfaces.d.ts +109 -32
- package/lib/secure-remote-commerce/interfaces.js +31 -11
- package/lib/secure-remote-commerce/interfaces.js.map +1 -1
- package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.d.ts +30 -0
- package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js +40 -0
- package/lib/secure-remote-commerce/mastercard-secure-remote-commerce.js.map +1 -0
- package/lib/secure-remote-commerce/providers/mastercard-src/index.d.ts +1 -0
- package/lib/secure-remote-commerce/providers/mastercard-src/index.js +2 -0
- package/lib/secure-remote-commerce/providers/mastercard-src/index.js.map +1 -0
- package/lib/secure-remote-commerce/providers/{visa-src/visa-src.d.ts → mastercard-src/mastercard-src.d.ts} +4 -7
- package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js +89 -0
- package/lib/secure-remote-commerce/providers/mastercard-src/mastercard-src.js.map +1 -0
- package/lib/secure-remote-commerce/secure-remote-commerce.d.ts +13 -91
- package/lib/secure-remote-commerce/secure-remote-commerce.js +15 -99
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.d.ts +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +28 -30
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -1
- package/package.json +2 -2
- package/slate.md +69 -131
- package/typings/index.d.ts +0 -1
- package/vendors/zipmoney.js +1 -2
- package/lib/secure-remote-commerce/providers/visa-src/helper.d.ts +0 -7
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.d.ts +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +0 -8
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
|
@@ -5,7 +5,8 @@ export declare class ApiServiceInternal {
|
|
|
5
5
|
getConfig(service_id: string): Promise<GetConfigResponse>;
|
|
6
6
|
}
|
|
7
7
|
export declare enum CARD_SCHEME_SERVICE {
|
|
8
|
-
VISA_SRC = "VisaSRC"
|
|
8
|
+
VISA_SRC = "VisaSRC",
|
|
9
|
+
MASTERCARD_SRC = "MastercardSRCClickToPay"
|
|
9
10
|
}
|
|
10
11
|
export interface GetConfigResponse {
|
|
11
12
|
type: string;
|
|
@@ -13,6 +13,7 @@ export class ApiServiceInternal {
|
|
|
13
13
|
export var CARD_SCHEME_SERVICE;
|
|
14
14
|
(function (CARD_SCHEME_SERVICE) {
|
|
15
15
|
CARD_SCHEME_SERVICE["VISA_SRC"] = "VisaSRC";
|
|
16
|
+
CARD_SCHEME_SERVICE["MASTERCARD_SRC"] = "MastercardSRCClickToPay";
|
|
16
17
|
})(CARD_SCHEME_SERVICE || (CARD_SCHEME_SERVICE = {}));
|
|
17
18
|
;
|
|
18
19
|
//# sourceMappingURL=../../src/lib/api/api-service-internal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-service-internal.js","sourceRoot":"","sources":["../../api/api-service-internal.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,iCAAiC,CAAC;AAErD,MAAM,OAAO,kBAAkB;IAC3B,YAAsB,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IACtC,CAAC;IAED,SAAS,CAAC,UAAkB;QACxB,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAAwB,KAAK,EAAE,GAAG,CAAC;aACnD,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;CACJ;AAED,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"api-service-internal.js","sourceRoot":"","sources":["../../api/api-service-internal.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAG,iCAAiC,CAAC;AAErD,MAAM,OAAO,kBAAkB;IAC3B,YAAsB,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IACtC,CAAC;IAED,SAAS,CAAC,UAAkB;QACxB,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAE1D,OAAO,IAAI,CAAC,GAAG;aACV,gBAAgB,CAAwB,KAAK,EAAE,GAAG,CAAC;aACnD,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;CACJ;AAED,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC3B,2CAAoB,CAAA;IACpB,iEAA0C,CAAA;AAC9C,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAAA,CAAC"}
|
|
@@ -9,6 +9,8 @@ export const EVENT = {
|
|
|
9
9
|
CHECKOUT_READY: 'checkoutReady',
|
|
10
10
|
CHECKOUT_ERROR: 'checkoutError',
|
|
11
11
|
CHECKOUT_COMPLETED: 'checkoutCompleted',
|
|
12
|
+
CHECKOUT_POPUP_OPEN: 'checkoutPopupOpen',
|
|
13
|
+
CHECKOUT_POPUP_CLOSE: 'checkoutPopupClose',
|
|
12
14
|
VALIDATION: 'validation',
|
|
13
15
|
SELECT: 'select',
|
|
14
16
|
UNSELECT: 'unselect',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframe-event.js","sourceRoot":"","sources":["../../components/iframe-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAwBtC,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,aAAa;IAC3B,gBAAgB,EAAE,iBAAiB;IACnC,cAAc,EAAE,eAAe;IAC/B,cAAc,EAAE,eAAe;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,YAAY;IACzB,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,mBAAmB;IACxC,kBAAkB,EAAE,kBAAkB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,uBAAuB,EAAE,8BAA8B;IACvD,sBAAsB,EAAE,6BAA6B;IACrD,WAAW,EAAE,YAAY;IACzB,gBAA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EM,KAAK;QACR,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,SAAS,CAAC,OAAe,EAAE,QAAuC;QACtE,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC1B,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;SACjD;aAAM;YACG,OAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;SACrD;IACL,CAAC;CACJ"}
|
package/lib/components/link.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IParams,
|
|
1
|
+
import { IParams, ISRCParams, IWalletParams } from './param';
|
|
2
2
|
import { Env } from '../configs/env/env';
|
|
3
3
|
export declare const WIDGET_LINK = "/remote-action";
|
|
4
4
|
export declare const VAULT_DISPLAY_WIDGET_LINK = "/vault-display";
|
|
@@ -7,6 +7,7 @@ export declare const SECURE_3D = "/3ds/webhook";
|
|
|
7
7
|
export declare const FLYPAY_LINK = "/wallet/flypay";
|
|
8
8
|
export declare const FLYPAY_LOGO_LINK = "/images/logo.png";
|
|
9
9
|
export declare const VISA_SRC = "/secure-remote-commerce/visa";
|
|
10
|
+
export declare const MASTERCARD_SRC = "/secure-remote-commerce/mastercard";
|
|
10
11
|
export declare class Link {
|
|
11
12
|
protected env: Env;
|
|
12
13
|
protected linkResource: string;
|
|
@@ -15,7 +16,7 @@ export declare class Link {
|
|
|
15
16
|
constructor(linkResource: string);
|
|
16
17
|
getNetUrl(): string;
|
|
17
18
|
getUrl(): string;
|
|
18
|
-
setParams(params: IParams | IWalletParams |
|
|
19
|
+
setParams(params: IParams | IWalletParams | ISRCParams): void;
|
|
19
20
|
concatParams(params: IParams): void;
|
|
20
21
|
getParams(): IParams;
|
|
21
22
|
setEnv(env: string, alias?: string): void;
|
package/lib/components/link.js
CHANGED
|
@@ -8,6 +8,7 @@ export const SECURE_3D = '/3ds/webhook';
|
|
|
8
8
|
export const FLYPAY_LINK = '/wallet/flypay';
|
|
9
9
|
export const FLYPAY_LOGO_LINK = '/images/logo.png';
|
|
10
10
|
export const VISA_SRC = '/secure-remote-commerce/visa';
|
|
11
|
+
export const MASTERCARD_SRC = '/secure-remote-commerce/mastercard';
|
|
11
12
|
export class Link {
|
|
12
13
|
constructor(linkResource) {
|
|
13
14
|
this.params = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,
|
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,oCAAoC,CAAC;AAEnE,MAAM,OAAO,IAAI;IAQb,YAAY,YAAoB;QAJtB,WAAM,GAAY,EAAE,CAAC;QACrB,aAAQ,GAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;QAIzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,SAAS,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,CAAC;SACvC;IACL,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,MAAM,CAAC,GAAW,EAAE,KAAc;QACrC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;IAClC,CAAC;CACJ"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="applepayjs" />
|
|
2
2
|
/// <reference types="googlepay" />
|
|
3
|
-
import { IVisaSRCMeta } from "../secure-remote-commerce/interfaces";
|
|
4
3
|
import type { CardValidatorValue, GenericValidatorValue } from "../constants/validators";
|
|
5
4
|
export declare const PAYMENT_SOURCE_TYPE: {
|
|
6
5
|
CARD: string;
|
|
@@ -164,9 +163,10 @@ export interface ICommonParams {
|
|
|
164
163
|
sdk_version?: string;
|
|
165
164
|
sdk_type?: string;
|
|
166
165
|
}
|
|
167
|
-
export interface
|
|
166
|
+
export interface ISRCParams extends ICommonParams {
|
|
168
167
|
public_key?: string;
|
|
169
168
|
service_id?: string;
|
|
169
|
+
meta?: string;
|
|
170
170
|
}
|
|
171
171
|
export interface IWalletParams extends IStyles, ITexts, ICommonParams {
|
|
172
172
|
token: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../components/param.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../components/param.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,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IACzB,oBAAoB;CACvB,CACJ,CAAC;AAgRF,MAAM,CAAN,IAAY,cAOX;AAPD,WAAY,cAAc;IACtB,mCAAiB,CAAA;IACjB,mCAAiB,CAAA;IACjB,wCAAsB,CAAA;IACtB,mCAAiB,CAAA;IACjB,2CAAyB,CAAA;IACzB,uCAAqB,CAAA;AACzB,CAAC,EAPW,cAAc,KAAd,cAAc,QAOzB;AAAA,CAAC;AAEF,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,qCAAsB,CAAA;IACtB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;AACzB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB"}
|
|
@@ -15,6 +15,18 @@ const STYLES = `
|
|
|
15
15
|
border-radius: 10px;
|
|
16
16
|
background-size: contain;
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
.checkout-overlay {
|
|
20
|
+
z-index: 2147483647;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.checkout-container [data-close] {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}
|
|
26
|
+
.checkout-container [data-close]:before,
|
|
27
|
+
.checkout-container [data-close]:after {
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
}
|
|
18
30
|
`;
|
|
19
31
|
export class WalletBackground extends Background {
|
|
20
32
|
constructor(bgImageUrl, hideCloseButton = false) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-background.js","sourceRoot":"","sources":["../../components/wallet-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,QAAQ,GAAG;;;;;CAKhB,CAAC;AAEF,MAAM,MAAM,GAAG
|
|
1
|
+
{"version":3,"file":"wallet-background.js","sourceRoot":"","sources":["../../components/wallet-background.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,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,OAAO,CAAC,SAAS,GAAG,QAAQ,CAAC;QAElC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/B,UAAU,CAAC,GAAG,EAAE;YACZ,IAAI,IAAI,CAAC,MAAM,EAAE;gBAAE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAC7D,CAAC,EAAE,CAAC,CAAC,CAAC;IACV,CAAC;IAEO,iBAAiB;QACrB,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACrE,IAAI,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAEzB,IAAI,SAAS,GAA6B,CACtC,QAAQ,CAAC,aAAa,CAAC,qBAAqB,CAAC,CAChD,CAAC;QACF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QAE9C,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QAE1D,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACtC,CAAC;CACJ"}
|
package/lib/configs/sdk.js
CHANGED
|
@@ -1 +1,102 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MastercardSRCClickToPay } from './mastercard-secure-remote-commerce';
|
|
2
|
+
/**
|
|
3
|
+
* Interface of data used for the Mastercard Checkout. For further information refer to [the documentation](https://developer.mastercard.com/unified-checkout-solutions/documentation/sdk-reference/init).
|
|
4
|
+
* @interface IMastercardSRCMeta
|
|
5
|
+
*
|
|
6
|
+
* @type {object}
|
|
7
|
+
* @param {boolean} [disable_summary_screen] Boolean flag that controls if a final summary screen is presented in the checkout flow.
|
|
8
|
+
* @param {object} [dpa_data] Object where the DPA creation data is stored.
|
|
9
|
+
* @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented.
|
|
10
|
+
* @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
|
|
11
|
+
* @param {string} [dpa_data.dpa_address] Address associated with the DPA.
|
|
12
|
+
* @param {string} [dpa_data.dpa_email_address] Email address for DPA communication.
|
|
13
|
+
* @param {object} [dpa_data.dpa_phone_number] Phone number structure for DPA communication.
|
|
14
|
+
* @param {string} [dpa_data.dpa_phone_number.country_code] The country code of the phone number.
|
|
15
|
+
* @param {string} [dpa_data.dpa_phone_number.phone_number] The phone number part of the phone number.
|
|
16
|
+
* @param {string} [dpa_data.dpa_logo_uri] URI for the DPA logo.
|
|
17
|
+
* @param {string} [dpa_data.dpa_supported_email_address] Supported email address for DPA support.
|
|
18
|
+
* @param {object} [dpa_data.dpa_supported_phone_number] Supported phone number for DPA support.
|
|
19
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.country_code] The country code of the phone number.
|
|
20
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.phone_number] The phone number part of the phone number.
|
|
21
|
+
* @param {string} [dpa_data.dpa_support_uri] URI for DPA support.
|
|
22
|
+
* @param {string} [dpa_data.application_type] Application type, either 'WEB_BROWSER' or 'MOBILE_APP'.
|
|
23
|
+
* @param {string[]} [co_brand_names] List of co-brand names associated with the SRC experience.
|
|
24
|
+
* @param {string} [checkout_experience] Checkout experience type, either 'WITHIN_CHECKOUT' or 'PAYMENT_SETTINGS'.
|
|
25
|
+
* @param {string} [services] Services offered, such as 'INLINE_CHECKOUT' or 'INLINE_INSTALLMENTS'.
|
|
26
|
+
* @param {object} [dpa_transaction_options] Object that stores options for creating a transaction with DPA.
|
|
27
|
+
* @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
|
|
28
|
+
* @param {string[]} [dpa_transaction_options.dpa_accepted_billing_countries] List of accepted billing countries for DPA in ISO 3166-1 alpha-2 format.
|
|
29
|
+
* @param {string} [dpa_transaction_options.dpa_billing_preference] Billing preferences for DPA, options are 'FULL', 'POSTAL_COUNTRY', 'NONE'.
|
|
30
|
+
* @param {object[]} [dpa_transaction_options.payment_options] Payment options included in the transaction.
|
|
31
|
+
* @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Dynamic data types.
|
|
32
|
+
* @param {string} [dpa_transaction_options.order_type] Type of the order, options are 'SPLIT_SHIPMENT', 'PREFERRED_CARD'.
|
|
33
|
+
* @param {string} [dpa_transaction_options.three_ds_preference] Preference for 3DS usage in the transaction.
|
|
34
|
+
* @param {boolean} [dpa_transaction_options.confirm_payment] Indicates if payment confirmation is required.
|
|
35
|
+
* @param {boolean} [dpa_transaction_options.consumer_name_requested] Indicates if consumer name is requested.
|
|
36
|
+
* @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Indicates if consumer email address is requested.
|
|
37
|
+
* @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Indicates if consumer phone number is requested.
|
|
38
|
+
* @param {object} [dpa_transaction_options.transaction_amount] Details of the transaction amount.
|
|
39
|
+
* @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Amount of the transaction.
|
|
40
|
+
* @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Currency code of the transaction in 3 letter ISO code format.
|
|
41
|
+
* @param {string} [dpa_transaction_options.merchant_order_id] Merchant's order ID.
|
|
42
|
+
* @param {string} [dpa_transaction_options.merchant_category_code] Merchant's category code.
|
|
43
|
+
* @param {string} [dpa_transaction_options.merchant_country_code] Merchant's country code in ISO 3166-1 alpha-2 format.
|
|
44
|
+
* @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
|
|
45
|
+
* @param {string} [customer.email] Customer email.
|
|
46
|
+
* @param {string} [customer.first_name] Customer first name.
|
|
47
|
+
* @param {string} [customer.last_name] Customer last name.
|
|
48
|
+
* @param {object} [customer.phone] Object where the customer phone is stored.
|
|
49
|
+
* @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US). // TODO: Confirm if it can be removed!
|
|
50
|
+
* @param {string} [customer.phone.phone] Customer phone number.
|
|
51
|
+
* @param {string} [unaccepted_card_type] Used to block a specific card type. Options are 'CREDIT', 'DEBIT'.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Interface for data returned in callbacks
|
|
55
|
+
* @interface EventData
|
|
56
|
+
*
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @param {EVENT_DATA_TYPE} type Event type of type [EVENT_DATA_TYPE]{@link EVENT_DATA_TYPE}
|
|
59
|
+
* @param {string | EventDataCheckoutCompletedData} data optional data returning a string for checkoutError event or [EventDataCheckoutCompletedData]{@link EventDataCheckoutCompletedData} for checkoutCompleted
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Event data returned for checkoutCompleted callback, holding the One Time Token and the flow type completed.
|
|
63
|
+
* When the flow type is src, masked checkoutData available is also returned
|
|
64
|
+
*
|
|
65
|
+
* @interface EventDataCheckoutCompletedData
|
|
66
|
+
*
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @param {string} type type of the checkout, can be `src` or `manual`.
|
|
69
|
+
* @param {string} token one time token value.
|
|
70
|
+
* @param {object} [checkoutData] Optional checkout data related to the checkout information. Only available on src flow.
|
|
71
|
+
* @param {string} [checkoutData.card_number_bin] The BIN of the card used for the transaction.
|
|
72
|
+
* @param {string} [checkoutData.card_number_last4] The last four digits of the card number.
|
|
73
|
+
* @param {string} [checkoutData.card_scheme] The card scheme. Values: visa, mastercard, amex, diners, discover.
|
|
74
|
+
* @param {string} [checkoutData.card_type] The type of card. Values: credit, debit, prepaid, combo, flex.
|
|
75
|
+
* @param {string} [checkoutData.address_line1] Address line 1 for billing address.
|
|
76
|
+
* @param {string} [checkoutData.address_line2] Address line 2 for billing address.
|
|
77
|
+
* @param {string} [checkoutData.address_line3] Address line 3 for billing address.
|
|
78
|
+
* @param {string} [checkoutData.address_city] City for billing address.
|
|
79
|
+
* @param {string} [checkoutData.address_postcode] Postal code for billing address.
|
|
80
|
+
* @param {string} [checkoutData.address_state] State or province for billing address.
|
|
81
|
+
* @param {string} [checkoutData.address_country] Country for billing address.
|
|
82
|
+
* @param {object} [checkoutData.shipping] Optional shipping information.
|
|
83
|
+
* @param {string} [checkoutData.shipping.address_line1] Address line 1 for shipping address.
|
|
84
|
+
* @param {string} [checkoutData.shipping.address_line2] Address line 2 for shipping address.
|
|
85
|
+
* @param {string} [checkoutData.shipping.address_line3] Address line 3 for shipping address.
|
|
86
|
+
* @param {string} [checkoutData.shipping.address_city] City for shipping address.
|
|
87
|
+
* @param {string} [checkoutData.shipping.address_postcode] Postal code for shipping address.
|
|
88
|
+
* @param {string} [checkoutData.shipping.address_state] State or province for shipping address.
|
|
89
|
+
* @param {string} [checkoutData.shipping.address_country] Country for shipping address.
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* Interface for style configs inyected to the SRC checkout
|
|
93
|
+
* @interface IStyles
|
|
94
|
+
*
|
|
95
|
+
* @type {object}
|
|
96
|
+
* @param {string} [primary_button_color] Color Code for primary button.
|
|
97
|
+
* @param {string} [primary_button_text_color] Color Code for primary button text.
|
|
98
|
+
* @param {string} [secondary_button_color] Color Code for secondary button.
|
|
99
|
+
* @param {string} [secondary_button_text_color] Color Code for secondary button text.
|
|
100
|
+
* @param {string} [font_family] Font family to be used.
|
|
101
|
+
* @param {boolean} [enable_src_popup] Boolean flag to make the SRC checkout show in a popup window instead of embedded in iframe.
|
|
102
|
+
*/
|
|
@@ -1,2 +1,103 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { MastercardSRCClickToPay } from './mastercard-secure-remote-commerce';
|
|
2
|
+
/**
|
|
3
|
+
* Interface of data used for the Mastercard Checkout. For further information refer to [the documentation](https://developer.mastercard.com/unified-checkout-solutions/documentation/sdk-reference/init).
|
|
4
|
+
* @interface IMastercardSRCMeta
|
|
5
|
+
*
|
|
6
|
+
* @type {object}
|
|
7
|
+
* @param {boolean} [disable_summary_screen] Boolean flag that controls if a final summary screen is presented in the checkout flow.
|
|
8
|
+
* @param {object} [dpa_data] Object where the DPA creation data is stored.
|
|
9
|
+
* @param {string} [dpa_data.dpa_presentation_name] Name in which the DPA is presented.
|
|
10
|
+
* @param {string} [dpa_data.dpa_uri] Used for indicating the DPA URI.
|
|
11
|
+
* @param {string} [dpa_data.dpa_address] Address associated with the DPA.
|
|
12
|
+
* @param {string} [dpa_data.dpa_email_address] Email address for DPA communication.
|
|
13
|
+
* @param {object} [dpa_data.dpa_phone_number] Phone number structure for DPA communication.
|
|
14
|
+
* @param {string} [dpa_data.dpa_phone_number.country_code] The country code of the phone number.
|
|
15
|
+
* @param {string} [dpa_data.dpa_phone_number.phone_number] The phone number part of the phone number.
|
|
16
|
+
* @param {string} [dpa_data.dpa_logo_uri] URI for the DPA logo.
|
|
17
|
+
* @param {string} [dpa_data.dpa_supported_email_address] Supported email address for DPA support.
|
|
18
|
+
* @param {object} [dpa_data.dpa_supported_phone_number] Supported phone number for DPA support.
|
|
19
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.country_code] The country code of the phone number.
|
|
20
|
+
* @param {string} [dpa_data.dpa_supported_phone_number.phone_number] The phone number part of the phone number.
|
|
21
|
+
* @param {string} [dpa_data.dpa_support_uri] URI for DPA support.
|
|
22
|
+
* @param {string} [dpa_data.application_type] Application type, either 'WEB_BROWSER' or 'MOBILE_APP'.
|
|
23
|
+
* @param {string[]} [co_brand_names] List of co-brand names associated with the SRC experience.
|
|
24
|
+
* @param {string} [checkout_experience] Checkout experience type, either 'WITHIN_CHECKOUT' or 'PAYMENT_SETTINGS'.
|
|
25
|
+
* @param {string} [services] Services offered, such as 'INLINE_CHECKOUT' or 'INLINE_INSTALLMENTS'.
|
|
26
|
+
* @param {object} [dpa_transaction_options] Object that stores options for creating a transaction with DPA.
|
|
27
|
+
* @param {string} [dpa_transaction_options.dpa_locale] DPA’s preferred locale, example en_US.
|
|
28
|
+
* @param {string[]} [dpa_transaction_options.dpa_accepted_billing_countries] List of accepted billing countries for DPA in ISO 3166-1 alpha-2 format.
|
|
29
|
+
* @param {string} [dpa_transaction_options.dpa_billing_preference] Billing preferences for DPA, options are 'FULL', 'POSTAL_COUNTRY', 'NONE'.
|
|
30
|
+
* @param {object[]} [dpa_transaction_options.payment_options] Payment options included in the transaction.
|
|
31
|
+
* @param {string} [dpa_transaction_options.payment_options.dynamic_data_type] Dynamic data types.
|
|
32
|
+
* @param {string} [dpa_transaction_options.order_type] Type of the order, options are 'SPLIT_SHIPMENT', 'PREFERRED_CARD'.
|
|
33
|
+
* @param {string} [dpa_transaction_options.three_ds_preference] Preference for 3DS usage in the transaction.
|
|
34
|
+
* @param {boolean} [dpa_transaction_options.confirm_payment] Indicates if payment confirmation is required.
|
|
35
|
+
* @param {boolean} [dpa_transaction_options.consumer_name_requested] Indicates if consumer name is requested.
|
|
36
|
+
* @param {boolean} [dpa_transaction_options.consumer_email_address_requested] Indicates if consumer email address is requested.
|
|
37
|
+
* @param {boolean} [dpa_transaction_options.consumer_phone_number_requested] Indicates if consumer phone number is requested.
|
|
38
|
+
* @param {object} [dpa_transaction_options.transaction_amount] Details of the transaction amount.
|
|
39
|
+
* @param {number} [dpa_transaction_options.transaction_amount.transaction_amount] Amount of the transaction.
|
|
40
|
+
* @param {string} [dpa_transaction_options.transaction_amount.transaction_currency_code] Currency code of the transaction in 3 letter ISO code format.
|
|
41
|
+
* @param {string} [dpa_transaction_options.merchant_order_id] Merchant's order ID.
|
|
42
|
+
* @param {string} [dpa_transaction_options.merchant_category_code] Merchant's category code.
|
|
43
|
+
* @param {string} [dpa_transaction_options.merchant_country_code] Merchant's country code in ISO 3166-1 alpha-2 format.
|
|
44
|
+
* @param {object} [customer] Object where the customer data is stored to prefill in the checkout.
|
|
45
|
+
* @param {string} [customer.email] Customer email.
|
|
46
|
+
* @param {string} [customer.first_name] Customer first name.
|
|
47
|
+
* @param {string} [customer.last_name] Customer last name.
|
|
48
|
+
* @param {object} [customer.phone] Object where the customer phone is stored.
|
|
49
|
+
* @param {string} [customer.phone.country_code] Customer phone country code (example "1" for US). // TODO: Confirm if it can be removed!
|
|
50
|
+
* @param {string} [customer.phone.phone] Customer phone number.
|
|
51
|
+
* @param {string} [unaccepted_card_type] Used to block a specific card type. Options are 'CREDIT', 'DEBIT'.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* Interface for data returned in callbacks
|
|
55
|
+
* @interface EventData
|
|
56
|
+
*
|
|
57
|
+
* @type {object}
|
|
58
|
+
* @param {EVENT_DATA_TYPE} type Event type of type [EVENT_DATA_TYPE]{@link EVENT_DATA_TYPE}
|
|
59
|
+
* @param {string | EventDataCheckoutCompletedData} data optional data returning a string for checkoutError event or [EventDataCheckoutCompletedData]{@link EventDataCheckoutCompletedData} for checkoutCompleted
|
|
60
|
+
*/
|
|
61
|
+
/**
|
|
62
|
+
* Event data returned for checkoutCompleted callback, holding the One Time Token and the flow type completed.
|
|
63
|
+
* When the flow type is src, masked checkoutData available is also returned
|
|
64
|
+
*
|
|
65
|
+
* @interface EventDataCheckoutCompletedData
|
|
66
|
+
*
|
|
67
|
+
* @type {object}
|
|
68
|
+
* @param {string} type type of the checkout, can be `src` or `manual`.
|
|
69
|
+
* @param {string} token one time token value.
|
|
70
|
+
* @param {object} [checkoutData] Optional checkout data related to the checkout information. Only available on src flow.
|
|
71
|
+
* @param {string} [checkoutData.card_number_bin] The BIN of the card used for the transaction.
|
|
72
|
+
* @param {string} [checkoutData.card_number_last4] The last four digits of the card number.
|
|
73
|
+
* @param {string} [checkoutData.card_scheme] The card scheme. Values: visa, mastercard, amex, diners, discover.
|
|
74
|
+
* @param {string} [checkoutData.card_type] The type of card. Values: credit, debit, prepaid, combo, flex.
|
|
75
|
+
* @param {string} [checkoutData.address_line1] Address line 1 for billing address.
|
|
76
|
+
* @param {string} [checkoutData.address_line2] Address line 2 for billing address.
|
|
77
|
+
* @param {string} [checkoutData.address_line3] Address line 3 for billing address.
|
|
78
|
+
* @param {string} [checkoutData.address_city] City for billing address.
|
|
79
|
+
* @param {string} [checkoutData.address_postcode] Postal code for billing address.
|
|
80
|
+
* @param {string} [checkoutData.address_state] State or province for billing address.
|
|
81
|
+
* @param {string} [checkoutData.address_country] Country for billing address.
|
|
82
|
+
* @param {object} [checkoutData.shipping] Optional shipping information.
|
|
83
|
+
* @param {string} [checkoutData.shipping.address_line1] Address line 1 for shipping address.
|
|
84
|
+
* @param {string} [checkoutData.shipping.address_line2] Address line 2 for shipping address.
|
|
85
|
+
* @param {string} [checkoutData.shipping.address_line3] Address line 3 for shipping address.
|
|
86
|
+
* @param {string} [checkoutData.shipping.address_city] City for shipping address.
|
|
87
|
+
* @param {string} [checkoutData.shipping.address_postcode] Postal code for shipping address.
|
|
88
|
+
* @param {string} [checkoutData.shipping.address_state] State or province for shipping address.
|
|
89
|
+
* @param {string} [checkoutData.shipping.address_country] Country for shipping address.
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* Interface for style configs inyected to the SRC checkout
|
|
93
|
+
* @interface IStyles
|
|
94
|
+
*
|
|
95
|
+
* @type {object}
|
|
96
|
+
* @param {string} [primary_button_color] Color Code for primary button.
|
|
97
|
+
* @param {string} [primary_button_text_color] Color Code for primary button text.
|
|
98
|
+
* @param {string} [secondary_button_color] Color Code for secondary button.
|
|
99
|
+
* @param {string} [secondary_button_text_color] Color Code for secondary button text.
|
|
100
|
+
* @param {string} [font_family] Font family to be used.
|
|
101
|
+
* @param {boolean} [enable_src_popup] Boolean flag to make the SRC checkout show in a popup window instead of embedded in iframe.
|
|
102
|
+
*/
|
|
2
103
|
//# sourceMappingURL=../../src/lib/secure-remote-commerce/index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../secure-remote-commerce/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;;;;;GAWG"}
|
|
@@ -3,23 +3,67 @@
|
|
|
3
3
|
* @enum EVENT
|
|
4
4
|
*
|
|
5
5
|
* @type {object}
|
|
6
|
-
* @param {string}
|
|
7
|
-
* @param {string}
|
|
8
|
-
* @param {string}
|
|
9
|
-
* @param {string}
|
|
10
|
-
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted
|
|
11
|
-
* @param {string} CHECKOUT_ERROR=checkoutError
|
|
6
|
+
* @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
|
|
7
|
+
* @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
|
|
8
|
+
* @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when SRC Checkout flow is started, regardless of embedded or windowed mode.
|
|
9
|
+
* @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when SRC Checkout flow is closed, regardless of embedded or windowed mode.
|
|
10
|
+
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
|
|
11
|
+
* @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
|
|
12
12
|
*/
|
|
13
13
|
export declare enum EVENT {
|
|
14
|
-
CHECKOUT_BUTTON_LOADED = "checkoutButtonLoaded",
|
|
15
|
-
CHECKOUT_BUTTON_CLICKED = "checkoutButtonClicked",
|
|
16
14
|
IFRAME_LOADED = "iframeLoaded",
|
|
17
15
|
CHECKOUT_READY = "checkoutReady",
|
|
18
16
|
CHECKOUT_COMPLETED = "checkoutCompleted",
|
|
19
|
-
CHECKOUT_ERROR = "checkoutError"
|
|
17
|
+
CHECKOUT_ERROR = "checkoutError",
|
|
18
|
+
CHECKOUT_POPUP_OPEN = "checkoutPopupOpen",
|
|
19
|
+
CHECKOUT_POPUP_CLOSE = "checkoutPopupClose"
|
|
20
20
|
}
|
|
21
|
-
export interface
|
|
22
|
-
|
|
21
|
+
export interface EventData {
|
|
22
|
+
type: EVENT_DATA_TYPE;
|
|
23
|
+
data?: string | EventDataCheckoutCompletedData;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List of available event data types
|
|
27
|
+
* @enum EVENT_DATA_TYPE
|
|
28
|
+
*
|
|
29
|
+
* @type {object}
|
|
30
|
+
* @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
|
|
31
|
+
* @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
|
|
32
|
+
* @param {string} SUCCESS=Success
|
|
33
|
+
*/
|
|
34
|
+
export declare enum EVENT_DATA_TYPE {
|
|
35
|
+
CRITICAL_ERROR = "CriticalError",
|
|
36
|
+
USER_ERROR = "UserError",
|
|
37
|
+
SUCCESS = "Success"
|
|
38
|
+
}
|
|
39
|
+
interface EventDataCheckoutCompletedData {
|
|
40
|
+
type: 'src' | 'manual';
|
|
41
|
+
token: string;
|
|
42
|
+
checkoutData?: {
|
|
43
|
+
card_number_bin?: string;
|
|
44
|
+
card_number_last4?: string;
|
|
45
|
+
card_scheme?: 'visa' | 'mastercard' | 'amex' | 'diners' | 'discover';
|
|
46
|
+
card_type?: 'credit' | 'debit' | 'prepaid' | 'combo' | 'flex';
|
|
47
|
+
address_line1?: string;
|
|
48
|
+
address_line2?: string;
|
|
49
|
+
address_line3?: string;
|
|
50
|
+
address_city?: string;
|
|
51
|
+
address_postcode?: string;
|
|
52
|
+
address_state?: string;
|
|
53
|
+
address_country?: string;
|
|
54
|
+
shipping?: {
|
|
55
|
+
address_line1?: string;
|
|
56
|
+
address_line2?: string;
|
|
57
|
+
address_line3?: string;
|
|
58
|
+
address_city?: string;
|
|
59
|
+
address_postcode?: string;
|
|
60
|
+
address_state?: string;
|
|
61
|
+
address_country?: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
interface IBaseSRCMeta {
|
|
66
|
+
customizations?: IStyles;
|
|
23
67
|
dpa_data?: {
|
|
24
68
|
dpa_presentation_name?: string;
|
|
25
69
|
dpa_uri?: string;
|
|
@@ -27,21 +71,9 @@ export interface IVisaSRCMeta {
|
|
|
27
71
|
dpa_transaction_options?: {
|
|
28
72
|
dpa_locale?: string;
|
|
29
73
|
dpa_accepted_billing_countries?: string[];
|
|
30
|
-
dpa_accepted_shipping_countries?: string[];
|
|
31
|
-
dpa_billing_preference?: DPA_SHIPPING_BILLING_PREFERENCE;
|
|
32
|
-
dpa_shipping_preference?: DPA_SHIPPING_BILLING_PREFERENCE;
|
|
33
74
|
consumer_name_requested?: boolean;
|
|
34
75
|
consumer_email_address_requested?: boolean;
|
|
35
76
|
consumer_phone_number_requested?: boolean;
|
|
36
|
-
payment_options?: {
|
|
37
|
-
dpa_dynamic_data_ttl_minutes?: number;
|
|
38
|
-
dynamic_data_type?: DPA_DYNAMIC_DATA_TYPE;
|
|
39
|
-
dpa_pan_requested?: boolean;
|
|
40
|
-
};
|
|
41
|
-
review_action?: REVIEW_ACTION;
|
|
42
|
-
checkout_description?: string;
|
|
43
|
-
transaction_type?: TRANSACTION_TYPE;
|
|
44
|
-
order_type?: ORDER_TYPE;
|
|
45
77
|
transaction_amount?: {
|
|
46
78
|
transaction_amount?: number;
|
|
47
79
|
transaction_currency_code?: string;
|
|
@@ -50,22 +82,67 @@ export interface IVisaSRCMeta {
|
|
|
50
82
|
merchant_category_code?: string;
|
|
51
83
|
merchant_country_code?: string;
|
|
52
84
|
};
|
|
53
|
-
customizations: IStyles;
|
|
54
85
|
}
|
|
55
|
-
|
|
86
|
+
interface PhoneNumber {
|
|
87
|
+
country_code: string;
|
|
88
|
+
phone_number: string;
|
|
89
|
+
}
|
|
90
|
+
interface Customer {
|
|
91
|
+
email?: string;
|
|
92
|
+
phone?: {
|
|
93
|
+
country_code?: string;
|
|
94
|
+
phone?: string;
|
|
95
|
+
};
|
|
96
|
+
first_name?: string;
|
|
97
|
+
last_name?: string;
|
|
98
|
+
}
|
|
99
|
+
export interface IMastercardSRCMeta extends IBaseSRCMeta {
|
|
100
|
+
dpa_data?: IBaseSRCMeta['dpa_data'] & {
|
|
101
|
+
dpa_address?: string;
|
|
102
|
+
dpa_email_address?: string;
|
|
103
|
+
dpa_phone_number?: PhoneNumber;
|
|
104
|
+
dpa_logo_uri?: string;
|
|
105
|
+
dpa_supported_email_address?: string;
|
|
106
|
+
dpa_supported_phone_number?: PhoneNumber;
|
|
107
|
+
dpa_uri?: string;
|
|
108
|
+
dpa_support_uri?: string;
|
|
109
|
+
application_type?: 'WEB_BROWSER' | 'MOBILE_APP';
|
|
110
|
+
};
|
|
111
|
+
disable_summary_screen?: boolean;
|
|
112
|
+
co_brand_names?: string[];
|
|
113
|
+
checkout_experience?: 'WITHIN_CHECKOUT' | 'PAYMENT_SETTINGS';
|
|
114
|
+
services?: 'INLINE_CHECKOUT' | 'INLINE_INSTALLMENTS';
|
|
115
|
+
dpa_transaction_options?: IBaseSRCMeta['dpa_transaction_options'] & {
|
|
116
|
+
dpa_billing_preference?: MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE;
|
|
117
|
+
payment_options?: Array<{
|
|
118
|
+
dynamic_data_type?: string;
|
|
119
|
+
}>;
|
|
120
|
+
order_type?: MASTERCARD_ORDER_TYPE;
|
|
121
|
+
three_ds_preference?: string;
|
|
122
|
+
confirm_payment?: boolean;
|
|
123
|
+
};
|
|
124
|
+
customer?: Customer;
|
|
125
|
+
unaccepted_card_type?: 'CREDIT' | 'DEBIT';
|
|
126
|
+
}
|
|
127
|
+
export declare type MASTERCARD_DPA_SHIPPING_BILLING_PREFERENCE = 'FULL' | 'POSTAL_COUNTRY' | 'NONE';
|
|
56
128
|
export declare type DPA_DYNAMIC_DATA_TYPE = 'TAVV' | 'DTVV';
|
|
57
129
|
export declare type REVIEW_ACTION = 'pay' | 'continue';
|
|
58
130
|
export declare type TRANSACTION_TYPE = 'PURCHASE' | 'BILL_PAYMENT' | 'MONEY_TRANSFER';
|
|
59
|
-
export declare type
|
|
131
|
+
export declare type MASTERCARD_ORDER_TYPE = 'SPLIT_SHIPMENT' | 'PREFERRED_CARD';
|
|
60
132
|
export interface IStyles {
|
|
61
|
-
|
|
62
|
-
|
|
133
|
+
primary_button_color?: string;
|
|
134
|
+
secondary_button_color?: string;
|
|
135
|
+
primary_button_text_color?: string;
|
|
136
|
+
secondary_button_text_color?: string;
|
|
63
137
|
font_family?: string;
|
|
64
|
-
|
|
138
|
+
enable_src_popup?: boolean;
|
|
65
139
|
}
|
|
66
140
|
export declare const STYLE: {
|
|
67
|
-
|
|
68
|
-
|
|
141
|
+
PRIMARY_BUTTON_COLOR: string;
|
|
142
|
+
SECONDARY_BUTTON_COLOR: string;
|
|
143
|
+
PRIMARY_BUTTON_TEXT_COLOR: string;
|
|
144
|
+
SECONDARY_BUTTON_TEXT_COLOR: string;
|
|
69
145
|
FONT_FAMILY: string;
|
|
70
|
-
|
|
146
|
+
ENABLE_SRC_POPUP: string;
|
|
71
147
|
};
|
|
148
|
+
export {};
|
|
@@ -3,26 +3,46 @@
|
|
|
3
3
|
* @enum EVENT
|
|
4
4
|
*
|
|
5
5
|
* @type {object}
|
|
6
|
-
* @param {string}
|
|
7
|
-
* @param {string}
|
|
8
|
-
* @param {string}
|
|
9
|
-
* @param {string}
|
|
10
|
-
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted
|
|
11
|
-
* @param {string} CHECKOUT_ERROR=checkoutError
|
|
6
|
+
* @param {string} IFRAME_LOADED=iframeLoaded Initial event sent when IFrame is initially loaded.
|
|
7
|
+
* @param {string} CHECKOUT_READY=checkoutReady Event sent when checkout is loaded and ready to be used by customer. Leverage alongside [showCheckout](#SRC+showCheckout) and [hideCheckout](#SRC+hideCheckout).
|
|
8
|
+
* @param {string} CHECKOUT_POPUP_OPEN=checkoutPopupOpen Event sent when SRC Checkout flow is started, regardless of embedded or windowed mode.
|
|
9
|
+
* @param {string} CHECKOUT_POPUP_CLOSE=checkoutPopupClose Event sent when SRC Checkout flow is closed, regardless of embedded or windowed mode.
|
|
10
|
+
* @param {string} CHECKOUT_COMPLETED=checkoutCompleted Event sent on successful checkout by customer. Check [data](#EventDataCheckoutCompletedData) for more information.
|
|
11
|
+
* @param {string} CHECKOUT_ERROR=checkoutError Event sent on error checkout by customer. Check [data](#EventData) for more information.
|
|
12
12
|
*/
|
|
13
13
|
export var EVENT;
|
|
14
14
|
(function (EVENT) {
|
|
15
|
-
EVENT["CHECKOUT_BUTTON_LOADED"] = "checkoutButtonLoaded";
|
|
16
|
-
EVENT["CHECKOUT_BUTTON_CLICKED"] = "checkoutButtonClicked";
|
|
17
15
|
EVENT["IFRAME_LOADED"] = "iframeLoaded";
|
|
18
16
|
EVENT["CHECKOUT_READY"] = "checkoutReady";
|
|
19
17
|
EVENT["CHECKOUT_COMPLETED"] = "checkoutCompleted";
|
|
20
18
|
EVENT["CHECKOUT_ERROR"] = "checkoutError";
|
|
19
|
+
EVENT["CHECKOUT_POPUP_OPEN"] = "checkoutPopupOpen";
|
|
20
|
+
EVENT["CHECKOUT_POPUP_CLOSE"] = "checkoutPopupClose";
|
|
21
21
|
})(EVENT || (EVENT = {}));
|
|
22
|
+
;
|
|
23
|
+
/**
|
|
24
|
+
* List of available event data types
|
|
25
|
+
* @enum EVENT_DATA_TYPE
|
|
26
|
+
*
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @param {string} CRITICAL_ERROR=CriticalError in this error scenario the checkout is understood to be in a non-recoverable state and should be closed by the merchant and give alternate payment options to the user
|
|
29
|
+
* @param {string} USER_ERROR=UserError in this error scenario the error in likely a user input error and the checkout is in a recoverable state, so the user will be kept within the checkout and can retry the flow
|
|
30
|
+
* @param {string} SUCCESS=Success
|
|
31
|
+
*/
|
|
32
|
+
export var EVENT_DATA_TYPE;
|
|
33
|
+
(function (EVENT_DATA_TYPE) {
|
|
34
|
+
EVENT_DATA_TYPE["CRITICAL_ERROR"] = "CriticalError";
|
|
35
|
+
EVENT_DATA_TYPE["USER_ERROR"] = "UserError";
|
|
36
|
+
EVENT_DATA_TYPE["SUCCESS"] = "Success";
|
|
37
|
+
})(EVENT_DATA_TYPE || (EVENT_DATA_TYPE = {}));
|
|
38
|
+
;
|
|
39
|
+
;
|
|
22
40
|
export const STYLE = {
|
|
23
|
-
|
|
24
|
-
|
|
41
|
+
PRIMARY_BUTTON_COLOR: 'primary_button_color',
|
|
42
|
+
SECONDARY_BUTTON_COLOR: 'secondary_button_color',
|
|
43
|
+
PRIMARY_BUTTON_TEXT_COLOR: 'primary_button_text_color',
|
|
44
|
+
SECONDARY_BUTTON_TEXT_COLOR: 'secondary_button_text_color',
|
|
25
45
|
FONT_FAMILY: 'font_family',
|
|
26
|
-
|
|
46
|
+
ENABLE_SRC_POPUP: 'enable_src_popup',
|
|
27
47
|
};
|
|
28
48
|
//# sourceMappingURL=../../src/lib/secure-remote-commerce/interfaces.js.map
|