@paydock/client-sdk 1.140.0-beta → 1.141.0-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -87
- package/bundles/index.cjs +2164 -97
- package/bundles/index.cjs.d.ts +24 -9
- package/bundles/index.mjs +2164 -97
- package/bundles/index.mjs.d.ts +24 -9
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +24 -10
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +1 -0
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +1 -0
- package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
- package/bundles/widget.umd.js +2164 -97
- package/bundles/widget.umd.js.d.ts +24 -9
- package/bundles/widget.umd.js.min.d.ts +24 -9
- package/bundles/widget.umd.min.js +1 -1
- package/docs/api-checkout-button.md +22 -0
- package/docs/open-wallet-buttons-examples.md +57 -87
- package/package.json +13 -3
- package/slate.md +57 -87
package/bundles/index.cjs.d.ts
CHANGED
|
@@ -2698,15 +2698,15 @@ declare class ZipmoneyCheckoutButton extends CheckoutButton {
|
|
|
2698
2698
|
protected mode: CHECKOUT_MODE;
|
|
2699
2699
|
/** @constructs */ constructor(selector: string, publicKey: string, gatewayId?: string, mode?: CHECKOUT_MODE);
|
|
2700
2700
|
/**
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2701
|
+
* Method for setting suspended redirect uri. Redirect after referred checkout
|
|
2702
|
+
*
|
|
2703
|
+
* The URI is used for a redirect after the checkout is complete.
|
|
2704
|
+
* This can be provided, even if using in-context checkout (sdk). By default, the standard styled page will be used.
|
|
2705
|
+
* If using in-context (sdk) we will not automatically redirect to this URI.
|
|
2706
|
+
*
|
|
2707
|
+
|
|
2708
|
+
* @param {uri} string - uri for suspended redirect (by default)
|
|
2709
|
+
*/
|
|
2710
2710
|
setSuspendedRedirectUri(uri: string): void;
|
|
2711
2711
|
/**
|
|
2712
2712
|
* Method for setting the merchant redirect URL.
|
|
@@ -2721,6 +2721,20 @@ declare class ZipmoneyCheckoutButton extends CheckoutButton {
|
|
|
2721
2721
|
*/
|
|
2722
2722
|
setRedirectUrl(url: string): void;
|
|
2723
2723
|
protected buildAdditionalParams(): ZipmoneyRunnerParams;
|
|
2724
|
+
/**
|
|
2725
|
+
* Subscribe to the click event with an async handler.
|
|
2726
|
+
* The checkout flow will wait for the async handler to complete before proceeding.
|
|
2727
|
+
* If the handler resolves to `false`, the checkout flow will be cancelled.
|
|
2728
|
+
*
|
|
2729
|
+
* @param handler - Async function to be called when the button is clicked
|
|
2730
|
+
*
|
|
2731
|
+
* @example
|
|
2732
|
+
* button.onClick(async () => {
|
|
2733
|
+
* const isValid = await fetchDataFromServer();
|
|
2734
|
+
* return isValid; // return false to stop checkout
|
|
2735
|
+
* });
|
|
2736
|
+
*/
|
|
2737
|
+
onClick<T>(handler: (data?: T) => Promise<boolean | void>): void;
|
|
2724
2738
|
}
|
|
2725
2739
|
|
|
2726
2740
|
/**
|
|
@@ -6271,6 +6285,7 @@ declare class ApplePayWalletButtonExpress extends BaseWalletButton<ApplePayWalle
|
|
|
6271
6285
|
private parseShippingMethodUpdateEvent;
|
|
6272
6286
|
private parseShippingContactUpdateEvent;
|
|
6273
6287
|
private formatErrorFields;
|
|
6288
|
+
private isUnsuportedBrowser;
|
|
6274
6289
|
}
|
|
6275
6290
|
|
|
6276
6291
|
interface PaypalWalletMeta extends BaseWalletMeta {
|