@paypercut/checkout-js 1.3.1 → 1.4.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 +72 -1
- package/dist/developer-assistance.cjs +2769 -0
- package/dist/developer-assistance.cjs.map +1 -0
- package/dist/developer-assistance.d.cts +2 -0
- package/dist/developer-assistance.d.mts +2 -0
- package/dist/developer-assistance.mjs +2766 -0
- package/dist/developer-assistance.mjs.map +1 -0
- package/dist/index.cjs +661 -166
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +898 -0
- package/dist/index.d.mts +898 -0
- package/dist/index.d.ts +9 -9
- package/dist/index.mjs +660 -166
- package/dist/index.mjs.map +1 -1
- package/dist/paypercut-checkout.iife.min.js +1 -1
- package/dist/paypercut-checkout.iife.min.js.map +1 -1
- package/dist/paypercut-developer-assistance.iife.min.js +2 -0
- package/dist/paypercut-developer-assistance.iife.min.js.map +1 -0
- package/package.json +16 -6
package/dist/index.d.ts
CHANGED
|
@@ -488,7 +488,7 @@ interface PaypercutOptions {
|
|
|
488
488
|
hostedCheckoutUrl?: string;
|
|
489
489
|
/** Internal builds only. Production builds ignore this override. */
|
|
490
490
|
apiUrl?: string;
|
|
491
|
-
/**
|
|
491
|
+
/** Enables the optional Developer Assistant integration tool. Defaults to false. */
|
|
492
492
|
developerAssistant?: boolean;
|
|
493
493
|
}
|
|
494
494
|
/** Browser-side intent prepared by one Elements group. */
|
|
@@ -796,8 +796,8 @@ interface ExpressCheckoutClickEvent {
|
|
|
796
796
|
resolve(options?: ExpressCheckoutClickResolveOptions): void;
|
|
797
797
|
reject(): void;
|
|
798
798
|
}
|
|
799
|
-
/**
|
|
800
|
-
interface
|
|
799
|
+
/** Mutable checkout details for an already mounted Express Checkout Element. */
|
|
800
|
+
interface ExpressCheckoutElementUpdateOptions {
|
|
801
801
|
lineItems?: ExpressCheckoutLineItem[];
|
|
802
802
|
emailRequired?: boolean;
|
|
803
803
|
phoneNumberRequired?: boolean;
|
|
@@ -807,13 +807,13 @@ interface ExpressCheckoutClickResolveOptions {
|
|
|
807
807
|
shippingRates?: ExpressCheckoutShippingRate[];
|
|
808
808
|
}
|
|
809
809
|
/**
|
|
810
|
-
*
|
|
811
|
-
*
|
|
812
|
-
* Provider selection, layout, and button styling remain immutable for the
|
|
813
|
-
* lifetime of the Element. Commerce state can be replaced before the next
|
|
814
|
-
* wallet gesture without remounting the secure component.
|
|
810
|
+
* Current checkout details supplied immediately before a wallet is opened.
|
|
811
|
+
* The amount and wallet details are applied to the same attempt atomically.
|
|
815
812
|
*/
|
|
816
|
-
|
|
813
|
+
interface ExpressCheckoutClickResolveOptions extends ExpressCheckoutElementUpdateOptions {
|
|
814
|
+
/** Authoritative order total in the group's currency, in minor units. */
|
|
815
|
+
amount?: number;
|
|
816
|
+
}
|
|
817
817
|
/** Updated checkout details returned after a wallet address or rate changes. */
|
|
818
818
|
interface ExpressCheckoutShippingUpdate {
|
|
819
819
|
/** Recalculated order total in the group's currency, in minor units. */
|