@paydock/client-sdk 1.138.1 → 1.139.0
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 +24 -9
- package/bundles/index.cjs +194 -164
- package/bundles/index.cjs.d.ts +13 -2
- package/bundles/index.mjs +194 -164
- package/bundles/index.mjs.d.ts +13 -2
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/utils/checkout-customisation-styles.util.d.ts.map +1 -1
- package/bundles/types/components/iframe.d.ts +2 -0
- package/bundles/types/components/iframe.d.ts.map +1 -1
- package/bundles/types/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.d.ts.map +1 -1
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts +12 -3
- package/bundles/types/paypal-data-collector/paypal-data-collector.d.ts.map +1 -1
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts +6 -5
- package/bundles/types/paypal-data-collector/paypal-data-collector.service.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/index-cba.d.ts +132 -1
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts +1 -1
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +81 -126
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +0 -1
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts +0 -1
- package/bundles/types/wallet-buttons/wallet-services/flypay-v2.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts +0 -1
- package/bundles/types/wallet-buttons/wallet-services/google.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +6 -0
- package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
- package/bundles/widget.umd.js +194 -164
- package/bundles/widget.umd.js.d.ts +13 -2
- package/bundles/widget.umd.js.min.d.ts +13 -2
- package/bundles/widget.umd.min.js +1 -1
- package/docs/paypal-data-collector-examples.md +12 -7
- package/docs/paypal-data-collector.md +11 -1
- package/docs/wallet-buttons.md +1 -1
- package/package.json +1 -1
package/bundles/index.mjs.d.ts
CHANGED
|
@@ -747,6 +747,8 @@ declare class IFrame {
|
|
|
747
747
|
constructor(container: Container);
|
|
748
748
|
load(link: string, options?: {
|
|
749
749
|
title?: string;
|
|
750
|
+
attributes?: Record<string, string>;
|
|
751
|
+
styles?: Record<string, string>;
|
|
750
752
|
}, iframeClass?: string): void;
|
|
751
753
|
loadFromHtml(content: string, options?: {
|
|
752
754
|
title?: string;
|
|
@@ -3669,11 +3671,20 @@ declare class PayPalDataCollector {
|
|
|
3669
3671
|
* the correlation id used among the requests asynchronously.
|
|
3670
3672
|
*
|
|
3671
3673
|
* @returns {Promise<CollectedDeviceData>} Promise when resolved, returns an object
|
|
3672
|
-
* that contains the `correlation_id` key.
|
|
3674
|
+
* that contains the `correlation_id` key. The promise may be rejected if script loading fails.
|
|
3673
3675
|
*
|
|
3674
3676
|
* @example
|
|
3675
3677
|
* const collectedDeviceData = await payPalDataCollectorWidget.collectDeviceData();
|
|
3676
3678
|
* console.log(collectedDeviceData.correlation_id)
|
|
3679
|
+
*
|
|
3680
|
+
* @example
|
|
3681
|
+
* payPalDataCollectorWidget.collectDeviceData()
|
|
3682
|
+
* .then((collectedDeviceData) => {
|
|
3683
|
+
* console.log(collectedDeviceData.correlation_id);
|
|
3684
|
+
* })
|
|
3685
|
+
* .catch((error) => {
|
|
3686
|
+
* console.error('Failed to collect device data', error);
|
|
3687
|
+
* });
|
|
3677
3688
|
*/
|
|
3678
3689
|
collectDeviceData(): Promise<CollectedDeviceData>;
|
|
3679
3690
|
/**
|
|
@@ -4505,7 +4516,7 @@ declare class WalletButtons {
|
|
|
4505
4516
|
* There are two operational modes supported, Synchronous and Asynchronous.
|
|
4506
4517
|
* When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
|
|
4507
4518
|
* When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
|
|
4508
|
-
* Note this is supported for Paypal, GooglePay and
|
|
4519
|
+
* Note this is supported for Paypal, GooglePay, ApplePay, Afterpay and FlypayV2 wallet buttons at the moment.
|
|
4509
4520
|
*
|
|
4510
4521
|
* @example
|
|
4511
4522
|
* button.onClick((data) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instruction.card_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v3/instructions/instruction.card_form.show.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instruction.card_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v3/instructions/instruction.card_form.show.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,UAAU,EAAW,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,qBACa,uBAAwB,SAAQ,kBAAkB;IAC7D,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAC7B,OAAO,CAAC,SAAS,CAAiB;IAE3B,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,aAAa,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAClC,WAAW,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;aAAE,CAAC;YAClE,WAAW,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAA;aAAE,CAAC;YACnD,kCAAkC,EAAE,OAAO,CAAC;YAC5C,YAAY,EAAE,OAAO,CAAC;SACvB,CAAC;KACH,GAAG,IAAI;IA8JR,OAAO;IAKP,OAAO,CAAC,eAAe;CAexB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-customisation-styles.util.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v3/utils/checkout-customisation-styles.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,wBAAgB,wBAAwB,CACtC,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"checkout-customisation-styles.util.d.ts","sourceRoot":"","sources":["../../../../src/checkout/v3/utils/checkout-customisation-styles.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAE7E,wBAAgB,wBAAwB,CACtC,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,qBAAqB,QA2BpC"}
|
|
@@ -4,6 +4,8 @@ export declare class IFrame {
|
|
|
4
4
|
constructor(container: Container);
|
|
5
5
|
load(link: string, options?: {
|
|
6
6
|
title?: string;
|
|
7
|
+
attributes?: Record<string, string>;
|
|
8
|
+
styles?: Record<string, string>;
|
|
7
9
|
}, iframeClass?: string): void;
|
|
8
10
|
loadFromHtml(content: string, options?: {
|
|
9
11
|
title?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iframe.d.ts","sourceRoot":"","sources":["../../src/components/iframe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,MAAM;IAEf,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;gBAEnB,SAAS,EAAE,SAAS;IAIzB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAM,EAAE,WAAW,CAAC,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"iframe.d.ts","sourceRoot":"","sources":["../../src/components/iframe.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,qBAAa,MAAM;IAEf,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;gBAEnB,SAAS,EAAE,SAAS;IAIzB,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;KAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IA+B7I,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,GAAE;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAM,EAAE,WAAW,CAAC,EAAE,MAAM;IAuBlF,MAAM;IAQN,IAAI;IAQJ,IAAI,CAAC,QAAQ,GAAE,OAAe;IAU9B,OAAO,IAAI,OAAO;IAIlB,UAAU;IAOV,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;IAKxC,eAAe,CAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM;IAInG,OAAO,CAAC,SAAS;CAOpB"}
|
|
@@ -6,6 +6,7 @@ export declare class Browser {
|
|
|
6
6
|
static getTimezoneOffset(): number;
|
|
7
7
|
static getBrowserName(): string;
|
|
8
8
|
static isJavaEnabled(): boolean;
|
|
9
|
+
static getAgentUser(): string;
|
|
9
10
|
static getColorDepth(): number;
|
|
10
11
|
static getScreenHeight(): number;
|
|
11
12
|
static getScreenWidth(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/helper/browser.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;WACJ,UAAU,IAAI,OAAO;WAQrB,WAAW,IAAI,OAAO;WAQtB,cAAc,IAAI,OAAO;WAIzB,WAAW,IAAI,MAAM;WAIrB,iBAAiB,IAAI,MAAM;WAI3B,cAAc,IAAI,MAAM;WAsBxB,aAAa,IAAI,OAAO;WAIxB,aAAa,IAAI,MAAM;WAIvB,eAAe,IAAI,MAAM;WAIzB,cAAc,IAAI,MAAM;WAIxB,cAAc,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CA8BlE"}
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../src/helper/browser.ts"],"names":[],"mappings":"AAAA,qBAAa,OAAO;WACJ,UAAU,IAAI,OAAO;WAQrB,WAAW,IAAI,OAAO;WAQtB,cAAc,IAAI,OAAO;WAIzB,WAAW,IAAI,MAAM;WAIrB,iBAAiB,IAAI,MAAM;WAI3B,cAAc,IAAI,MAAM;WAsBxB,aAAa,IAAI,OAAO;WAIxB,YAAY,IAAI,MAAM;WAItB,aAAa,IAAI,MAAM;WAIvB,eAAe,IAAI,MAAM;WAIzB,cAAc,IAAI,MAAM;WAIxB,cAAc,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;CA8BlE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
import { type CollectedDeviceData, type IOnErrorEventData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from
|
|
1
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
2
|
+
import { type CollectedDeviceData, type IOnErrorEventData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from './paypal-data-collector.interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* PayPal Data Collector Widget constructor
|
|
5
5
|
*
|
|
@@ -18,11 +18,20 @@ declare class PayPalDataCollector {
|
|
|
18
18
|
* the correlation id used among the requests asynchronously.
|
|
19
19
|
*
|
|
20
20
|
* @returns {Promise<CollectedDeviceData>} Promise when resolved, returns an object
|
|
21
|
-
* that contains the `correlation_id` key.
|
|
21
|
+
* that contains the `correlation_id` key. The promise may be rejected if script loading fails.
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* const collectedDeviceData = await payPalDataCollectorWidget.collectDeviceData();
|
|
25
25
|
* console.log(collectedDeviceData.correlation_id)
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* payPalDataCollectorWidget.collectDeviceData()
|
|
29
|
+
* .then((collectedDeviceData) => {
|
|
30
|
+
* console.log(collectedDeviceData.correlation_id);
|
|
31
|
+
* })
|
|
32
|
+
* .catch((error) => {
|
|
33
|
+
* console.error('Failed to collect device data', error);
|
|
34
|
+
* });
|
|
26
35
|
*/
|
|
27
36
|
collectDeviceData(): Promise<CollectedDeviceData>;
|
|
28
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypal-data-collector.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"paypal-data-collector.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAG5C;;;;;;;;GAQG;AACH,cAAM,mBAAmB;IACvB,SAAS,CAAC,OAAO,EAAE,oBAAoB,CAAC;IACxC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,kBAAkB,aACN,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,yBAAyB;IAS/D;;;;;;;;;;;;;;;;;;;OAmBG;IACI,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IASxD;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,iBAAiB,KAAK,IAAI;IAI5D;;;;;;;;;;OAUG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventEmitter } from
|
|
2
|
-
import { type CollectedDeviceData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from
|
|
1
|
+
import type { EventEmitter } from '../helper/event-emitter';
|
|
2
|
+
import { type CollectedDeviceData, type IOnErrorEventData, type IPayPalDataCollector, type PayPalDataCollectorConfig } from './paypal-data-collector.interfaces';
|
|
3
3
|
export declare class PayPalDataCollectorService implements IPayPalDataCollector {
|
|
4
4
|
protected eventEmitter: EventEmitter;
|
|
5
5
|
protected flowId?: string;
|
|
@@ -9,9 +9,10 @@ export declare class PayPalDataCollectorService implements IPayPalDataCollector
|
|
|
9
9
|
constructor(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig);
|
|
10
10
|
static fromConfig(eventEmitter: EventEmitter, flowId?: string, config?: PayPalDataCollectorConfig): PayPalDataCollectorService;
|
|
11
11
|
collectDeviceData(): Promise<CollectedDeviceData>;
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
|
|
12
|
+
private appendPaypalDataCollectorComponent;
|
|
13
|
+
private createPaypalScript;
|
|
14
|
+
private createFraudnetScript;
|
|
15
|
+
onError(rejectPromise?: (reason: IOnErrorEventData) => void): void;
|
|
15
16
|
setEnv(env: string): void;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=paypal-data-collector.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypal-data-collector.service.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"paypal-data-collector.service.d.ts","sourceRoot":"","sources":["../../src/paypal-data-collector/paypal-data-collector.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EACL,KAAK,mBAAmB,EAExB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EAEzB,KAAK,yBAAyB,EAC/B,MAAM,oCAAoC,CAAC;AAE5C,qBAAa,0BAA2B,YAAW,oBAAoB;IAKnE,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM;IACzB,SAAS,CAAC,MAAM,CAAC,EAAE,yBAAyB;IAN9C,SAAS,CAAC,aAAa,EAAE,MAAM,CAAC;IAChC,SAAS,CAAC,SAAS,EAAE,OAAO,CAAC;gBAGjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAG9C,MAAM,CAAC,UAAU,CACf,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,yBAAyB;IAK7B,iBAAiB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IAaxD,OAAO,CAAC,kCAAkC;IAmC1C,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,oBAAoB;IAOrB,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,iBAAiB,KAAK,IAAI;IAW3D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;CAGjC"}
|
package/bundles/types/secure-remote-commerce/providers/mastercard-src/mastercard-src.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mastercard-src.d.ts","sourceRoot":"","sources":["../../../../src/secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAmB,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,IAAI,EAAkB,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAA8B,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAS,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;AAEpC,qBAAa,aAAc,YAAW,WAAW;IASgC,SAAS,CAAC,IAAI,EAAE,eAAe;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAAE,SAAS,CAAC,UAAU;IARxK,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,oBAAoB,CAA6B;gBAE7C,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe,EAAY,YAAY,EAAE,YAAY,EAAY,UAAU,KAAA,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAqCrM,OAAO,CAAC,iBAAiB;IA6BlB,IAAI,IAAI,IAAI;
|
|
1
|
+
{"version":3,"file":"mastercard-src.d.ts","sourceRoot":"","sources":["../../../../src/secure-remote-commerce/providers/mastercard-src/mastercard-src.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAmB,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,IAAI,EAAkB,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAA8B,OAAO,EAAE,MAAM,6BAA6B,CAAC;AAElF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,KAAK,QAAQ,EAAS,KAAK,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC;AAEpC,qBAAa,aAAc,YAAW,WAAW;IASgC,SAAS,CAAC,IAAI,EAAE,eAAe;IAAE,SAAS,CAAC,YAAY,EAAE,YAAY;IAAE,SAAS,CAAC,UAAU;IARxK,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;IACrB,SAAS,CAAC,eAAe,EAAE,SAAS,CAAC;IACrC,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,WAAW,EAAE,WAAW,CAAC;IACnC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,oBAAoB,CAA6B;gBAE7C,eAAe,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAY,IAAI,EAAE,eAAe,EAAY,YAAY,EAAE,YAAY,EAAY,UAAU,KAAA,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAqCrM,OAAO,CAAC,iBAAiB;IA6BlB,IAAI,IAAI,IAAI;IAuBZ,MAAM,IAAI,MAAM;IAIhB,YAAY,CAAC,QAAQ,EAAE,OAAO;IAK9B,YAAY;IAKZ,MAAM;IAKN,aAAa,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI;IAmB3C;;;;OAIG;IACI,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,IAAI;CAQ9D"}
|
|
@@ -1,2 +1,133 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { IEventData, IWalletOnClickEvent, IWalletPaymentSuccessfulEvent, IWalletUnavailableEvent, IWalletUpdateData, IWalletUpdateEvent, } from './wallet-buttons';
|
|
2
|
+
export { WalletButtons } from './wallet-cba-buttons';
|
|
3
|
+
/**
|
|
4
|
+
* Interface of data from events.
|
|
5
|
+
* @interface IEventData
|
|
6
|
+
*
|
|
7
|
+
* @param {string} event
|
|
8
|
+
* @param {void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | IWalletOnClick | any} data
|
|
9
|
+
**/
|
|
10
|
+
/**
|
|
11
|
+
* Interface of data from a successful payment result.
|
|
12
|
+
* @interface IWalletPaymentSuccessful
|
|
13
|
+
*
|
|
14
|
+
* @param {string} id
|
|
15
|
+
* @param {number} amount
|
|
16
|
+
* @param {string} currency
|
|
17
|
+
* @param {string} status
|
|
18
|
+
* @param {string} [payer_name]
|
|
19
|
+
* @param {string} [payer_email]
|
|
20
|
+
* @param {string} [payer_phone]
|
|
21
|
+
**/
|
|
22
|
+
/**
|
|
23
|
+
* Interface of data from an update event.
|
|
24
|
+
* @interface IWalletUpdate
|
|
25
|
+
*
|
|
26
|
+
* @param {string} [wallet_response_code]
|
|
27
|
+
* @param {string} [wallet_session_id]
|
|
28
|
+
* @param {object} [payment_source]
|
|
29
|
+
* @param {string} [payment_source.wallet_payment_method_id]
|
|
30
|
+
* @param {string} [payment_source.card_number_last4]
|
|
31
|
+
* @param {string} [payment_source.card_scheme]
|
|
32
|
+
* @param {object} [wallet_loyalty_account]
|
|
33
|
+
* @param {string} [wallet_loyalty_account.id]
|
|
34
|
+
* @param {string} [wallet_loyalty_account.barcode]
|
|
35
|
+
* @param {object} [shipping]
|
|
36
|
+
* @param {string} [shipping.address_line1]
|
|
37
|
+
* @param {string} [shipping.address_line2]
|
|
38
|
+
* @param {string} [shipping.address_postcode]
|
|
39
|
+
* @param {string} [shipping.address_city]
|
|
40
|
+
* @param {string} [shipping.address_state]
|
|
41
|
+
* @param {string} [shipping.address_country]
|
|
42
|
+
* @param {string} [shipping.address_company]
|
|
43
|
+
* @param {string} [shipping.post_office_box_number]
|
|
44
|
+
* @param {string} [shipping.wallet_address_id]
|
|
45
|
+
* @param {string} [shipping.wallet_address_name]
|
|
46
|
+
* @param {string} [shipping.wallet_address_created_timestamp]
|
|
47
|
+
* @param {string} [shipping.wallet_address_updated_timestamp]
|
|
48
|
+
**/
|
|
49
|
+
/**
|
|
50
|
+
* Interface of data from a wallet onClick event.
|
|
51
|
+
* @interface IWalletOnClick
|
|
52
|
+
*
|
|
53
|
+
* @param attachResult - Method to be called that attaches a result to the wallet onClick operation.
|
|
54
|
+
* When handler is synchronous, this method is optionally called with a boolean flag indicating validation result.
|
|
55
|
+
* When handler executes asynchronous operations, this method must be called with the Promise to have the wallet process wait for its completion or rejection.
|
|
56
|
+
**/
|
|
57
|
+
/**
|
|
58
|
+
* Interface of data from an unavailable event.
|
|
59
|
+
* @interface IWalletUnavailable
|
|
60
|
+
*
|
|
61
|
+
* @param {string} [wallet] For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'.
|
|
62
|
+
* @param {string} [type] Event Code.
|
|
63
|
+
* @param {string} [error_code] Event Error Code.
|
|
64
|
+
+
|
|
65
|
+
**/
|
|
66
|
+
/**
|
|
67
|
+
* Interface of data for wallet button `update` call.
|
|
68
|
+
* @interface IWalletUpdateData
|
|
69
|
+
*
|
|
70
|
+
* @param {boolean} success
|
|
71
|
+
**/
|
|
72
|
+
/**
|
|
73
|
+
* Interface of data used by the wallet checkout and payment proccess.
|
|
74
|
+
* @interface IWalletMeta
|
|
75
|
+
*
|
|
76
|
+
* @type {object}
|
|
77
|
+
* @param {string} [amount_label] Label shown next to the total amount to be paid. Required for [ApplePay, GooglePay]. N/A for [PayPal, Afterpay].
|
|
78
|
+
* @param {string} [country] Country of the user. 2 letter ISO code format. Required for [ApplePay, GooglePay, Afterpay]. N/A for [PayPal].
|
|
79
|
+
* @param {boolean} [pay_later] Used to enable Pay Later feature in PayPal Smart Checkout WalletButton integration when available. Optional for [PayPal]. N/A for other wallets.
|
|
80
|
+
* @param {boolean} [hide_message] Used to hide Pay Later message in PayPal Smart Checkout WalletButton integration. Optional for [PayPal]. N/A for other wallets.
|
|
81
|
+
* @param {boolean} [standalone] Used to enable Standalone Buttons feature in PayPal Smart Checkout WalletButton integration. Used together with `pay_later`. Optional for [PayPal]. N/A for other wallets.
|
|
82
|
+
* @param {boolean} [show_billing_address] Used to hide/show the billing address on ApplePay and GooglePay popups. Default value is false. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
83
|
+
* @param {boolean} [request_shipping] Used to request or not shipping address in the Wallet checkout, being able to handle amount changes via the `update` event. Optional for [PayPal, ApplePay, GooglePay]. N/A for [Afterpay].
|
|
84
|
+
* @param {IApplePayShippingOption[] | IPayPalShippingOption[]} [shipping_options] Used to provide available shipping options.(To use shipping_options the request_shipping flag should be true). Optional for [ApplePay]. N/A for the other wallets.
|
|
85
|
+
* @param {string} [merchant_name] Merchant Name used for GooglePay integration via MPGS. Required for [GooglePay]. N/A for other wallets.
|
|
86
|
+
* @param {object} [raw_data_initialization] Used to provide values to initialize wallet with raw data. Optional for [ApplePay]. N/A for the other wallets.
|
|
87
|
+
* @param {object} [style] For **Paypal**: used to style the buttons, check possible values in the [style guide](https://developer.paypal.com/docs/business/checkout/reference/style-guide).
|
|
88
|
+
* When `standalone` and `pay_later`, extra options can be provided in `style.messages` with the [messages style options](https://developer.paypal.com/docs/checkout/pay-later/us/integrate/reference/#stylelayout).
|
|
89
|
+
* Also used at **ApplePay**, **GooglePay** and **Afterpay** to select button type.
|
|
90
|
+
* Optional for [PayPal, ApplePay, GooglePay, Afterpay].
|
|
91
|
+
* @param {object} [style.button_type] Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values [here](https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css).
|
|
92
|
+
* Also select button type for GooglePay (check GooglePayStyles) and Afterpay (check AfterpayStyles). Optional for [ApplePay, GooglePay, Afterpay]. N/A for other wallets.
|
|
93
|
+
* @param {object} [style.button_style] Used to select ApplePay button style (e.g: 'black', 'white', etc), check possible values [here](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaybuttonstyle). Optional for [ApplePay]. N/A for other wallets.
|
|
94
|
+
* @param {object} [style.height] Used to select Afterpay button height. Optional for [Afterpay]. N/A for other wallets.
|
|
95
|
+
* @param {array} [wallets] By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google']. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
96
|
+
* @param {Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>} [apple_pay_capabilities] Device capabilities needed for wallet button to be available.
|
|
97
|
+
* For further information about refer to [the documentation](https://developer.apple.com/documentation/apple_pay_on_the_web/applepaysession/4440085-applepaycapabilities).
|
|
98
|
+
* If the recognized value is credentials_status_unknown, the payment most possibly cannot be finished on the web, and the buyer must complete it on a compatible device, like Iphone, via QR scan.
|
|
99
|
+
* Optional parameter for [ApplePay]. N/A for [GooglePay, PayPal, Afterpay].
|
|
100
|
+
**/
|
|
101
|
+
/**
|
|
102
|
+
* Interface of Shipping Options for ApplePay
|
|
103
|
+
* @interface IApplePayShippingOption
|
|
104
|
+
*
|
|
105
|
+
* @type {object}
|
|
106
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
107
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
108
|
+
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
109
|
+
* @param {string} [detail] Details of the Shipping Option. Required.
|
|
110
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
111
|
+
**/
|
|
112
|
+
/**
|
|
113
|
+
* Interface of Shipping Options for GooglePay
|
|
114
|
+
* @interface IGooglePayShippingOption
|
|
115
|
+
*
|
|
116
|
+
* @type {object}
|
|
117
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
118
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
119
|
+
* @param {string} [detail] Details of the Shipping Option. Optional.
|
|
120
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
121
|
+
**/
|
|
122
|
+
/**
|
|
123
|
+
* Interface of Shipping Options for PayPal
|
|
124
|
+
* @interface IPayPalShippingOption
|
|
125
|
+
*
|
|
126
|
+
* @type {object}
|
|
127
|
+
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
128
|
+
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
129
|
+
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
130
|
+
* @param {string} [currency] Currency of the Shipping Option. Required.
|
|
131
|
+
* @param {string} [type] Type of the Shipping Option. Values can be 'SHIPPING' or 'PICKUP'. Required.
|
|
132
|
+
**/
|
|
2
133
|
//# sourceMappingURL=index-cba.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-cba.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index-cba.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index-cba.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/index-cba.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,6BAA6B,EAC7B,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD;;;;;;IAMI;AAEJ;;;;;;;;;;;IAWI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;IA0BI;AAEJ;;;;;;;IAOI;AAEJ;;;;;;;;IAQI;AAEJ;;;;;IAKI;AAEJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AAEJ;;;;;;;;;;IAUI;AAEJ;;;;;;;;;IASI;AAEJ;;;;;;;;;;IAUI"}
|
|
@@ -275,7 +275,7 @@ declare class WalletButtons {
|
|
|
275
275
|
* There are two operational modes supported, Synchronous and Asynchronous.
|
|
276
276
|
* When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
|
|
277
277
|
* When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
|
|
278
|
-
* Note this is supported for Paypal, GooglePay and
|
|
278
|
+
* Note this is supported for Paypal, GooglePay, ApplePay, Afterpay and FlypayV2 wallet buttons at the moment.
|
|
279
279
|
*
|
|
280
280
|
* @example
|
|
281
281
|
* button.onClick((data) => {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ApiInternal } from
|
|
2
|
-
import { Container } from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import type { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from
|
|
1
|
+
import { ApiInternal } from '../api/api-internal';
|
|
2
|
+
import { Container } from '../components/container';
|
|
3
|
+
import { type IWalletMeta } from '../components/param';
|
|
4
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
5
|
+
import { EventEnum } from './enums';
|
|
6
|
+
import type { IWalletOnClick, IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from './interfaces';
|
|
7
|
+
import { type IWalletService } from './wallet-services/wallet-service';
|
|
7
8
|
/**
|
|
8
9
|
* List of available event's name in the wallet button lifecycle
|
|
9
10
|
* @const EVENT
|
|
@@ -13,131 +14,44 @@ import type { IWalletPaymentSuccessful, IWalletUnavailable, IWalletUpdate } from
|
|
|
13
14
|
* @param {string} UPDATE=update
|
|
14
15
|
* @param {string} PAYMENT_SUCCESSFUL=paymentSuccessful
|
|
15
16
|
* @param {string} PAYMENT_ERROR=paymentError
|
|
17
|
+
* @param {string} ON_CLICK=onClick
|
|
18
|
+
* @param {string} LOADED=onWalletLoaded
|
|
16
19
|
*/
|
|
17
20
|
export declare const EVENT: {
|
|
18
|
-
UNAVAILABLE:
|
|
19
|
-
UPDATE:
|
|
20
|
-
PAYMENT_SUCCESSFUL:
|
|
21
|
-
PAYMENT_ERROR:
|
|
22
|
-
PAYMENT_IN_REVIEW:
|
|
21
|
+
UNAVAILABLE: EventEnum;
|
|
22
|
+
UPDATE: EventEnum;
|
|
23
|
+
PAYMENT_SUCCESSFUL: EventEnum;
|
|
24
|
+
PAYMENT_ERROR: EventEnum;
|
|
25
|
+
PAYMENT_IN_REVIEW: EventEnum;
|
|
26
|
+
ON_CLICK: EventEnum;
|
|
27
|
+
ON_CHECKOUT_OPEN: EventEnum;
|
|
28
|
+
ON_CHECKOUT_CLOSE: EventEnum;
|
|
29
|
+
ON_WALLET_LOADED: EventEnum;
|
|
23
30
|
};
|
|
24
|
-
|
|
25
|
-
* Interface of data from events.
|
|
26
|
-
* @interface IEventData
|
|
27
|
-
*
|
|
28
|
-
* @param {string} event
|
|
29
|
-
* @param {void | IWalletPaymentSuccessful | IWalletUpdate | IWalletUnavailable | any} data
|
|
30
|
-
* */
|
|
31
|
-
export interface IEventData {
|
|
31
|
+
export interface IEventData<T = any> {
|
|
32
32
|
event: string;
|
|
33
|
-
data:
|
|
33
|
+
data: T;
|
|
34
|
+
}
|
|
35
|
+
export interface IWalletPaymentSuccessfulEvent extends IEventData<IWalletPaymentSuccessful> {
|
|
36
|
+
event: EventEnum.PAYMENT_SUCCESSFUL;
|
|
37
|
+
}
|
|
38
|
+
export interface IWalletUpdateEvent extends IEventData<IWalletUpdate> {
|
|
39
|
+
event: EventEnum.UPDATE;
|
|
40
|
+
}
|
|
41
|
+
export interface IWalletUnavailableEvent extends IEventData<IWalletUnavailable> {
|
|
42
|
+
event: EventEnum.UNAVAILABLE;
|
|
43
|
+
}
|
|
44
|
+
export interface IWalletLoadedEvent extends IEventData<string> {
|
|
45
|
+
event: EventEnum.ON_WALLET_LOADED;
|
|
46
|
+
}
|
|
47
|
+
export interface IWalletOnClickEvent extends IEventData<IWalletOnClick> {
|
|
48
|
+
event: EventEnum.ON_CLICK;
|
|
34
49
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Interface of data from a successful payment result.
|
|
37
|
-
* @interface IWalletPaymentSuccessful
|
|
38
|
-
*
|
|
39
|
-
* @param {string} id
|
|
40
|
-
* @param {number} amount
|
|
41
|
-
* @param {string} currency
|
|
42
|
-
* @param {string} status
|
|
43
|
-
* @param {string} [payer_name]
|
|
44
|
-
* @param {string} [payer_email]
|
|
45
|
-
* @param {string} [payer_phone]
|
|
46
|
-
* */
|
|
47
|
-
/**
|
|
48
|
-
* Interface of data from an update event.
|
|
49
|
-
* @interface IWalletUpdate
|
|
50
|
-
*
|
|
51
|
-
* @param {string} [wallet_response_code]
|
|
52
|
-
* @param {string} [wallet_session_id]
|
|
53
|
-
* @param {object} [payment_source]
|
|
54
|
-
* @param {string} [payment_source.wallet_payment_method_id]
|
|
55
|
-
* @param {string} [payment_source.card_number_last4]
|
|
56
|
-
* @param {string} [payment_source.card_scheme]
|
|
57
|
-
* @param {object} [wallet_loyalty_account]
|
|
58
|
-
* @param {string} [wallet_loyalty_account.id]
|
|
59
|
-
* @param {string} [wallet_loyalty_account.barcode]
|
|
60
|
-
* @param {object} [shipping]
|
|
61
|
-
* @param {string} [shipping.address_line1]
|
|
62
|
-
* @param {string} [shipping.address_line2]
|
|
63
|
-
* @param {string} [shipping.address_postcode]
|
|
64
|
-
* @param {string} [shipping.address_city]
|
|
65
|
-
* @param {string} [shipping.address_state]
|
|
66
|
-
* @param {string} [shipping.address_country]
|
|
67
|
-
* @param {string} [shipping.address_company]
|
|
68
|
-
* @param {string} [shipping.post_office_box_number]
|
|
69
|
-
* @param {string} [shipping.wallet_address_id]
|
|
70
|
-
* @param {string} [shipping.wallet_address_name]
|
|
71
|
-
* @param {string} [shipping.wallet_address_created_timestamp]
|
|
72
|
-
* @param {string} [shipping.wallet_address_updated_timestamp]
|
|
73
|
-
* */
|
|
74
|
-
/**
|
|
75
|
-
* Interface of data from an unavailable event.
|
|
76
|
-
* @interface IWalletUnavailable
|
|
77
|
-
*
|
|
78
|
-
* @param {string} [wallet] For gateways with more than one wallet button available (e.g: MPGS with ApplePay and GooglePay). Possible values for wallet are 'apple' or 'google'.
|
|
79
|
-
* */
|
|
80
|
-
/**
|
|
81
|
-
* Interface of data for wallet button `update` call.
|
|
82
|
-
* @interface IWalletUpdateData
|
|
83
|
-
*
|
|
84
|
-
* @param {boolean} success
|
|
85
|
-
* */
|
|
86
50
|
export interface IWalletUpdateData {
|
|
87
51
|
success: boolean;
|
|
88
52
|
}
|
|
89
53
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @interface IWalletMeta
|
|
92
|
-
*
|
|
93
|
-
* @type {object}
|
|
94
|
-
* @param {string} [amount_label] Label shown next to the total amount to be paid. Required for [ApplePay, GooglePay]. N/A for [ PayPal].
|
|
95
|
-
* @param {string} [country] Country of the user. 2 letter ISO code format. Required for [ ApplePay, GooglePay]. N/A for [PayPal].
|
|
96
|
-
* @param {boolean} [pay_later] Used to enable Pay Later feature in PayPal Smart Checkout WalletButton integration when available. Optional for [PayPal]. N/A for other wallets.
|
|
97
|
-
* @param {boolean} [standalone] Used to enable Standalone Buttons feature in PayPal Smart Checkout WalletButton integration. Used together with `pay_later`. Optional for [PayPal]. N/A for other wallets.
|
|
98
|
-
* @param {boolean} [show_billing_address] Used to hide/show the billing address on ApplePay and GooglePay popups. Default value is false. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
99
|
-
* @param {boolean} [request_shipping] Used to request or not shipping address in the Wallet checkout, being able to handle amount changes via the `update` event. Optional for [PayPal, ApplePay, GooglePay].
|
|
100
|
-
* @param {IApplePayShippingOption[] | IPayPalShippingOption[]} [shipping_options] Used to provide available shipping options.(To use shipping_options the request_shipping flag should be true). Optional for [ApplePay]. N/A for the other wallets.
|
|
101
|
-
* @param {string} [merchant_name] Merchant Name used for GooglePay integration via MPGS. Required for [GooglePay]. N/A for other wallets.
|
|
102
|
-
* @param {object} [raw_data_initialization] Used to provide values to initialize wallet with raw data. Optional for [ApplePay]. N/A for the other wallets.
|
|
103
|
-
* @param {object} [style] Used to style PayPal buttons, check possible values at https://developer.paypal.com/docs/business/checkout/reference/style-guide. Also used at ApplePay to select button type. Optional for [PayPal, ApplePay].
|
|
104
|
-
* @param {object} [style.button_type] Used to select ApplePay button type (e.g: 'buy','donate', etc), check possible values at https://developer.apple.com/documentation/apple_pay_on_the_web/displaying_apple_pay_buttons_using_css. Optional for [ApplePay]. N/A for other wallets.
|
|
105
|
-
* @param {array} [wallets] By default if this is not sent or empty, we will try to show either Apple Pay or Google Pay buttons. This can be limited sending the following array in this field: ['apple','google]. Optional for [ApplePay, GooglePay]. N/A for other wallets.
|
|
106
|
-
*/
|
|
107
|
-
/**
|
|
108
|
-
* Interface of Shipping Options for ApplePay
|
|
109
|
-
* @interface IApplePayShippingOption
|
|
110
|
-
*
|
|
111
|
-
* @type {object}
|
|
112
|
-
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
113
|
-
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
114
|
-
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
115
|
-
* @param {string} [detail] Details of the Shipping Option. Required.
|
|
116
|
-
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
117
|
-
*/
|
|
118
|
-
/**
|
|
119
|
-
* Interface of Shipping Options for GooglePay
|
|
120
|
-
* @interface IGooglePayShippingOption
|
|
121
|
-
*
|
|
122
|
-
* @type {object}
|
|
123
|
-
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
124
|
-
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
125
|
-
* @param {string} [detail] Details of the Shipping Option. Optional.
|
|
126
|
-
* @param {string} [type] Type of the Shipping Option. Values can be 'ELECTRONIC', 'GROUND', 'NOT_SHIPPED', 'OVERNIGHT', 'PICKUP', 'PRIORITY', 'SAME_DAY'. Optional.
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* Interface of Shipping Options for PayPal
|
|
130
|
-
* @interface IPayPalShippingOption
|
|
131
|
-
*
|
|
132
|
-
* @type {object}
|
|
133
|
-
* @param {string} [id] Identifier of the Shipping Option. Required.
|
|
134
|
-
* @param {string} [label] Identifier of the Shipping Option. Required.
|
|
135
|
-
* @param {string} [amount] Amount of the Shipping Option. Required.
|
|
136
|
-
* @param {string} [currency] Currency of the Shipping Option. Required.
|
|
137
|
-
* @param {string} [type] Type of the Shipping Option. Values can be 'SHIPPING' or 'PICKUP'. Required.
|
|
138
|
-
*/
|
|
139
|
-
/**
|
|
140
|
-
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Paypal)
|
|
54
|
+
* Class WalletButtons to work with different E-Wallets within html (currently supports Apple Pay, Google Pay, Paypal, Afterpay)
|
|
141
55
|
* @constructor
|
|
142
56
|
*
|
|
143
57
|
* @example
|
|
@@ -145,7 +59,7 @@ export interface IWalletUpdateData {
|
|
|
145
59
|
*
|
|
146
60
|
* @param {string} selector - Selector of html element. Container for the WalletButtons.
|
|
147
61
|
* @param {string} chargeToken - token for the wallet transaction, created with a secure call to `POST charges/wallet`.
|
|
148
|
-
* @param {IWalletMeta}
|
|
62
|
+
* @param {IWalletMeta} meta - data that configures the E-Wallet, which can be shown on checkout page and configures required customer information.
|
|
149
63
|
*/
|
|
150
64
|
declare class WalletButtons {
|
|
151
65
|
protected container: Container;
|
|
@@ -255,7 +169,7 @@ declare class WalletButtons {
|
|
|
255
169
|
*
|
|
256
170
|
* @param {listener} [handler] - Function to be called when no button is available.
|
|
257
171
|
*/
|
|
258
|
-
onUnavailable(handler?: (data:
|
|
172
|
+
onUnavailable(handler?: (data: IWalletUnavailableEvent) => void): Promise<void> | (() => void);
|
|
259
173
|
/**
|
|
260
174
|
* If the wallet performs some update in the checkout process, the function passed as parameter will be called.
|
|
261
175
|
*
|
|
@@ -271,7 +185,7 @@ declare class WalletButtons {
|
|
|
271
185
|
*
|
|
272
186
|
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
273
187
|
*/
|
|
274
|
-
onUpdate(handler?: (data:
|
|
188
|
+
onUpdate(handler?: (data: IWalletUpdateEvent) => void): Promise<unknown> | (() => void);
|
|
275
189
|
/**
|
|
276
190
|
* If the payment was successful, the function passed as parameter will be called.
|
|
277
191
|
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
@@ -286,7 +200,7 @@ declare class WalletButtons {
|
|
|
286
200
|
*
|
|
287
201
|
* @param {listener} [handler] - Function to be called when the payment was successful.
|
|
288
202
|
*/
|
|
289
|
-
onPaymentSuccessful(handler?: (data:
|
|
203
|
+
onPaymentSuccessful(handler?: (data: IWalletPaymentSuccessfulEvent) => void): Promise<unknown> | (() => void);
|
|
290
204
|
/**
|
|
291
205
|
* If the payment was left in fraud review, the function passed as parameter will be called.
|
|
292
206
|
* Important: Do not perform thread blocking operations in callback such as window.alert() calls.
|
|
@@ -317,9 +231,50 @@ declare class WalletButtons {
|
|
|
317
231
|
* @param {listener} [handler] - Function to be called when the payment was not successful.
|
|
318
232
|
*/
|
|
319
233
|
onPaymentError(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
234
|
+
/**
|
|
235
|
+
* Registers a callback function to be invoked when the wallet button gets clicked.
|
|
236
|
+
* There are two operational modes supported, Synchronous and Asynchronous.
|
|
237
|
+
* When asynchronous operations need to occur on the callback handler, attaching the Promise via `attachResult` is required to have the wallet wait for a result.
|
|
238
|
+
* When synchronous operations occur on the callback handler, attaching a boolean result via `attachResult` is optional to control the execution flow.
|
|
239
|
+
* Note this is supported for Paypal, GooglePay, ApplePay, Afterpay wallet buttons.
|
|
240
|
+
*
|
|
241
|
+
* @example
|
|
242
|
+
* button.onClick((data) => {
|
|
243
|
+
* performValidationLogic();
|
|
244
|
+
* });
|
|
245
|
+
*
|
|
246
|
+
* @param {listener} handler - Function to be called when the wallet button is clicked.
|
|
247
|
+
*/
|
|
248
|
+
onClick(handler: (data: IWalletOnClickEvent) => void): () => void;
|
|
249
|
+
/**
|
|
250
|
+
* Registers a callback function to be invoked when the wallet checkout opens.
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* button.onCheckoutOpen((data) => {
|
|
254
|
+
* console.log('Checkout opens');
|
|
255
|
+
* });
|
|
256
|
+
*
|
|
257
|
+
* @param {listener} handler - Function to be called when the wallet checkout opens.
|
|
258
|
+
*/
|
|
259
|
+
onCheckoutOpen(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
260
|
+
/**
|
|
261
|
+
* Registers a callback function to be invoked when the wallet checkout closes.
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* button.onCheckoutClose(() => {
|
|
265
|
+
* console.log('Wallet checkout closes');
|
|
266
|
+
* });
|
|
267
|
+
*
|
|
268
|
+
* @param {listener} handler - Function to be called when the wallet checkout closes.
|
|
269
|
+
*/
|
|
270
|
+
onCheckoutClose(handler?: (err: IEventData) => void): Promise<unknown> | (() => void);
|
|
320
271
|
private setupServiceCallbacks;
|
|
272
|
+
private setupOnWalletLoadedCallback;
|
|
321
273
|
private setupUnavailableCallback;
|
|
322
274
|
private setupUpdateCallback;
|
|
275
|
+
private setupOnClickCallback;
|
|
276
|
+
private setupOnCheckoutOpenCallback;
|
|
277
|
+
private setupOnCheckoutCloseCallback;
|
|
323
278
|
private setupWalletCallback;
|
|
324
279
|
private setupPaymentCallback;
|
|
325
280
|
private setupPaymentSuccessCallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-cba-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-cba-buttons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wallet-cba-buttons.d.ts","sourceRoot":"","sources":["../../src/wallet-buttons/wallet-cba-buttons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAEL,KAAK,WAAW,EAEjB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EACV,cAAc,EACd,wBAAwB,EACxB,kBAAkB,EAClB,aAAa,EACd,MAAM,cAAc,CAAC;AAItB,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,kCAAkC,CAAC;AAE1C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;CAUjB,CAAC;AAGF,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,oBAAoB;IA0C5B,OAAO,CAAC,2BAA2B;IASnC,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,yBAAyB;CAQlC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -15,6 +15,7 @@ export declare class AfterPayWalletService extends WalletService implements IWal
|
|
|
15
15
|
setEnv(env: string): this;
|
|
16
16
|
private mount;
|
|
17
17
|
private onAfterPayButtonClicked;
|
|
18
|
+
private initializeAfterpay;
|
|
18
19
|
private getCheckoutSession;
|
|
19
20
|
private getButton;
|
|
20
21
|
private getButtonStyle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"afterpay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/afterpay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAO5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAEvB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QAEd,QAAQ,EAAE,GAAG,CAAC;KACf;CACF;AASD,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAChF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,cAAc,CAAU;gBAEpB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAY5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAO/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAQzB,OAAO,CAAC,KAAK;IAiBb,OAAO,CAAC,uBAAuB;
|
|
1
|
+
{"version":3,"file":"afterpay.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/afterpay.wallet-service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAO5D,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EAEvB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QAEd,QAAQ,EAAE,GAAG,CAAC;KACf;CACF;AASD,qBAAa,qBAAsB,SAAQ,aAAc,YAAW,cAAc;IAChF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,iBAAiB,CAAoB;IAC7C,OAAO,CAAC,cAAc,CAAU;gBAEpB,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB;IAY5C,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,GAAG;IAO/B,MAAM,CAAC,GAAG,EAAE,MAAM;IAQzB,OAAO,CAAC,KAAK;IAiBb,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,kBAAkB;IAyE1B,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,SAAS;IA4BjB,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,SAAS;CAWlB"}
|
|
@@ -37,7 +37,6 @@ export declare class AppleWalletService extends WalletService implements IWallet
|
|
|
37
37
|
private createRequest;
|
|
38
38
|
private getMerchantSession;
|
|
39
39
|
private onValidateMerchant;
|
|
40
|
-
private handleMerchantOnButtonClickEvent;
|
|
41
40
|
private onPaymentAuthorized;
|
|
42
41
|
private onShippingContactSelected;
|
|
43
42
|
private onShippingMethodSelected;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,KAAK,6BA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4BhD,OAAO,CAAC,cAAc;IAwBf,MAAM,CAAC,IAAI,EAAE,oBAAoB;IA6CxC,OAAO,CAAC,iBAAiB;IAwBzB,OAAO,CAAC,KAAK;IAuBb,OAAO,CAAC,uBAAuB;IAW/B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,aAAa;IAiDrB,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,kBAAkB,CAgBxB;
|
|
1
|
+
{"version":3,"file":"apple.wallet-service.d.ts","sourceRoot":"","sources":["../../../src/wallet-buttons/wallet-services/apple.wallet-service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,cAAc,EACnB,KAAK,uBAAuB,EAI7B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAEzB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,eAAe,EAAE,eAAe,CAAC;KAClC;CACF;AAED,UAAU,kBAAkB;IAC1B,eAAe,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;IACpD,cAAc,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC;CACpD;AAID,qBAAa,kBAAmB,SAAQ,aAAc,YAAW,cAAc;IAU3E,SAAS,CAAC,WAAW,EAAE,MAAM;IAC7B,SAAS,CAAC,YAAY,EAAE,YAAY;IAVtC,OAAO,CAAC,cAAc,CAAkB;IACxC,SAAS,CAAC,kCAAkC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACvE,SAAS,CAAC,iCAAiC,EAAE,MAAM,IAAI,CAAC;IACxD,SAAS,CAAC,sBAAsB,EAAE,uBAAu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