@paydock/client-sdk 1.103.11-beta → 1.103.24-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.
- package/README.md +266 -444
- package/bundles/widget.umd.js +303 -646
- 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/container.d.ts +0 -1
- package/lib/components/container.js +0 -3
- package/lib/components/container.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.d.ts +1 -2
- package/lib/components/wallet-background.js +1 -4
- package/lib/components/wallet-background.js.map +1 -1
- package/lib/configs/env/env.d.ts +3 -0
- package/lib/configs/env/env.js +9 -0
- package/lib/configs/env/env.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 +39 -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 +88 -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 -98
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +1 -1
- package/lib/wallet-buttons/apple.wallet-service.d.ts +0 -2
- package/lib/wallet-buttons/apple.wallet-service.js +5 -38
- package/lib/wallet-buttons/apple.wallet-service.js.map +1 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.d.ts +1 -9
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +132 -105
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +1 -1
- package/lib/wallet-buttons/google.wallet-service.d.ts +0 -3
- package/lib/wallet-buttons/google.wallet-service.js +8 -41
- package/lib/wallet-buttons/google.wallet-service.js.map +1 -1
- package/lib/wallet-buttons/index.d.ts +0 -126
- package/lib/wallet-buttons/index.js +0 -126
- package/lib/wallet-buttons/index.js.map +1 -1
- package/lib/wallet-buttons/interfaces.d.ts +0 -3
- package/lib/wallet-buttons/paypal.wallet-service.js +2 -17
- package/lib/wallet-buttons/paypal.wallet-service.js.map +1 -1
- package/lib/wallet-buttons/wallet-buttons.d.ts +120 -62
- package/lib/wallet-buttons/wallet-buttons.js +60 -84
- package/lib/wallet-buttons/wallet-buttons.js.map +1 -1
- package/lib/wallet-buttons/wallet-service.d.ts +0 -7
- package/lib/wallet-buttons/wallet-service.js +0 -11
- package/lib/wallet-buttons/wallet-service.js.map +1 -1
- package/package.json +1 -1
- package/slate.md +78 -132
- 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/lib/wallet-buttons/helpers/flypay-v2.helper.d.ts +0 -3
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js +0 -151
- package/lib/wallet-buttons/helpers/flypay-v2.helper.js.map +0 -1
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.js","sourceRoot":"","sources":["../../components/container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AACtC,MAAM,OAAO,SAAS;IAKlB,YAAY,QAAgB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC7B,CAAC;IAGM,OAAO;QAC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G,CAAC,CAAC;YACrC,IAAI,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;YAEvD,IAAI,UAAU,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;gBACxC,MAAM,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SAC/C;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ"}
|
|
@@ -18,6 +18,8 @@ export const EVENT = {
|
|
|
18
18
|
CHECKOUT_READY: 'checkoutReady',
|
|
19
19
|
CHECKOUT_ERROR: 'checkoutError',
|
|
20
20
|
CHECKOUT_COMPLETED: 'checkoutCompleted',
|
|
21
|
+
CHECKOUT_POPUP_OPEN: 'checkoutPopupOpen',
|
|
22
|
+
CHECKOUT_POPUP_CLOSE: 'checkoutPopupClose',
|
|
21
23
|
VALIDATION: 'validation',
|
|
22
24
|
SELECT: 'select',
|
|
23
25
|
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;AAYtC;;;;;;;;KAQK;AAKL,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,EAA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AAc,CAAC,KAAK,CAAC;gBAC5B,SAAS;YAEb,IAAI,SAAS,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE;gBAC5B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;oBAChB,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,EAAE;oBACZ,SAAS,EAAE,QAAQ;iBACtB,CAAC,CAAC;aACN;SACJ;IACL,CAAC;IAEM,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;AAE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GAAG,CAAC,GAAG,EAAE,CAAC;YAE1B,IAAI,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM;gBACvB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;;gBAEtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,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
|
export declare const PAYMENT_SOURCE_TYPE: {
|
|
5
4
|
CARD: string;
|
|
6
5
|
BANK_ACCOUNT: string;
|
|
@@ -166,9 +165,10 @@ export interface ICommonParams {
|
|
|
166
165
|
sdk_version?: string;
|
|
167
166
|
sdk_type?: string;
|
|
168
167
|
}
|
|
169
|
-
export interface
|
|
168
|
+
export interface ISRCParams extends ICommonParams {
|
|
170
169
|
public_key?: string;
|
|
171
170
|
service_id?: string;
|
|
171
|
+
meta?: string;
|
|
172
172
|
}
|
|
173
173
|
export interface IWalletParams extends IStyles, ITexts, ICommonParams {
|
|
174
174
|
token: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../components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O;IACP,QAAQ;IACR,eAAe;IACf,QAAQ;IACR,YAAY;IACZ,uBAAuB;CAC1B,EACD;IACI,QAAQ;IACR,UAAU;IACV,OAAO;IACP,YAAY;IACZ,WAAW;IACX,cAAc;IACd,eAAe;IACf,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,iBAAiB;IACjB,OAAO;CACV,EACD;IACI,yBAAyB;IACzB,oBAAoB;CACvB,CACJ,CAAC;AAmRF,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"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { Background } from "./background";
|
|
2
2
|
export declare class WalletBackground extends Background {
|
|
3
3
|
protected bgImageUrl: string;
|
|
4
|
-
protected hideCloseButton: boolean;
|
|
5
4
|
protected imageStyle: HTMLStyleElement;
|
|
6
|
-
constructor(bgImageUrl: string
|
|
5
|
+
constructor(bgImageUrl: string);
|
|
7
6
|
initControl(): void;
|
|
8
7
|
clear(): void;
|
|
9
8
|
protected createTemplate(): void;
|
|
@@ -17,10 +17,9 @@ const STYLES = `
|
|
|
17
17
|
}
|
|
18
18
|
`;
|
|
19
19
|
export class WalletBackground extends Background {
|
|
20
|
-
constructor(bgImageUrl
|
|
20
|
+
constructor(bgImageUrl) {
|
|
21
21
|
super();
|
|
22
22
|
this.bgImageUrl = bgImageUrl;
|
|
23
|
-
this.hideCloseButton = hideCloseButton;
|
|
24
23
|
this.imageStyle = null;
|
|
25
24
|
}
|
|
26
25
|
initControl() {
|
|
@@ -37,8 +36,6 @@ export class WalletBackground extends Background {
|
|
|
37
36
|
createTemplate() {
|
|
38
37
|
let body = document.body || document.getElementsByTagName("body")[0];
|
|
39
38
|
let template = String(TEMPLATE);
|
|
40
|
-
if (this.hideCloseButton === true)
|
|
41
|
-
template = template.replace('<a href="#" data-close>Close</a>', '');
|
|
42
39
|
this.overlay = document.createElement("div");
|
|
43
40
|
this.overlay.classList.add("checkout-overlay");
|
|
44
41
|
this.overlay.setAttribute("checkout-overlay", " ");
|
|
@@ -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;;;;;;;;;;CAUd,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAG5C,YAAsB,UAAkB
|
|
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;;;;;;;;;;CAUd,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAG5C,YAAsB,UAAkB;QACpC,KAAK,EAAE,CAAC;QADU,eAAU,GAAV,UAAU,CAAQ;QAF9B,eAAU,GAAqB,IAAI,CAAC;IAI9C,CAAC;IAEM,WAAW;QACd,IAAI,CAAC,IAAI,CAAC,UAAU;YAChB,IAAI,CAAC,iBAAiB,EAAE,CAAC;QAE7B,KAAK,CAAC,WAAW,EAAE,CAAC;IACxB,CAAC;IAEM,KAAK;QACR,IAAI,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C,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/env/env.d.ts
CHANGED
package/lib/configs/env/env.js
CHANGED
|
@@ -20,6 +20,9 @@ export const ENV = {
|
|
|
20
20
|
STAGING_13: 'staging_13',
|
|
21
21
|
STAGING_14: 'staging_14',
|
|
22
22
|
STAGING_15: 'staging_15',
|
|
23
|
+
STAGING_CBA: 'staging_cba',
|
|
24
|
+
PREPROD_CBA: 'preproduction_cba',
|
|
25
|
+
PROD_CBA: 'production_cba',
|
|
23
26
|
};
|
|
24
27
|
export const WIDGET_URL = [
|
|
25
28
|
{ env: ENV.SANDBOX, url: 'https://widget-sandbox.' },
|
|
@@ -43,6 +46,9 @@ export const WIDGET_URL = [
|
|
|
43
46
|
{ env: ENV.STAGING_13, url: 'https://widsta-13.' },
|
|
44
47
|
{ env: ENV.STAGING_14, url: 'https://widsta-14.' },
|
|
45
48
|
{ env: ENV.STAGING_15, url: 'https://widsta-15.' },
|
|
49
|
+
{ env: ENV.STAGING_CBA, url: 'https://widget.staging.powerboard.' },
|
|
50
|
+
{ env: ENV.PREPROD_CBA, url: 'https://widget.preproduction.powerboard.' },
|
|
51
|
+
{ env: ENV.PROD_CBA, url: 'https://widget.powerboard.' },
|
|
46
52
|
];
|
|
47
53
|
export const API_URL = [
|
|
48
54
|
{ env: ENV.SANDBOX, url: 'https://api-sandbox.' },
|
|
@@ -63,6 +69,9 @@ export const API_URL = [
|
|
|
63
69
|
{ env: ENV.STAGING_13, url: 'https://apista-13.' },
|
|
64
70
|
{ env: ENV.STAGING_14, url: 'https://apista-14.' },
|
|
65
71
|
{ env: ENV.STAGING_15, url: 'https://apista-15.' },
|
|
72
|
+
{ env: ENV.STAGING_CBA, url: 'https://api.staging.powerboard.' },
|
|
73
|
+
{ env: ENV.PREPROD_CBA, url: 'https://api.preproduction.powerboard.' },
|
|
74
|
+
{ env: ENV.PROD_CBA, url: 'https://api.powerboard.' },
|
|
66
75
|
];
|
|
67
76
|
const ADDITIONAL_ENV = [ENV.SANDBOX_KOVENA, ENV.SANDBOX_DEMO_KOVENA];
|
|
68
77
|
const REGEX_ALIAS = '^([a-zA-Z0-9](?:(?:[a-zA-Z0-9-.]*(?!-)\\.(?![-.]))*[a-zA-Z0-9]+)?)$';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../configs/env/env.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,gBAAgB;IAChC,YAAY,EAAE,cAAc;IAC5B,mBAAmB,EAAE,qBAAqB;IAC1C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;
|
|
1
|
+
{"version":3,"file":"env.js","sourceRoot":"","sources":["../../../configs/env/env.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,GAAG,GAAG;IACf,OAAO,EAAE,SAAS;I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5 @@ SDK.headerKeys = Object.freeze({
|
|
|
12
12
|
// the empty string is set in case if version not provided.
|
|
13
13
|
//
|
|
14
14
|
// e.g: grunt build --sdk-version=v1.0.0
|
|
15
|
-
SDK._version = 'v1.103.
|
|
15
|
+
SDK._version = 'v1.103.24-beta';
|
|
16
16
|
//# sourceMappingURL=../../src/lib/configs/sdk.js.map
|
|
@@ -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"}
|