@paypercut/checkout-js 1.4.0 → 1.4.2
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 +36 -1
- package/dist/developer-assistance.cjs +119 -18
- package/dist/developer-assistance.cjs.map +1 -1
- package/dist/developer-assistance.mjs +119 -18
- package/dist/developer-assistance.mjs.map +1 -1
- package/dist/index.cjs +318 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -9
- package/dist/index.d.mts +16 -9
- package/dist/index.d.ts +16 -9
- package/dist/index.mjs +318 -36
- 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 +1 -1
- package/dist/paypercut-developer-assistance.iife.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -482,8 +482,14 @@ interface ExpressCheckoutStatic {
|
|
|
482
482
|
|
|
483
483
|
/** Options used to initialise the Paypercut browser client. */
|
|
484
484
|
interface PaypercutOptions {
|
|
485
|
-
/** Public browser credential. The value is opaque;
|
|
485
|
+
/** Public browser credential. The value is opaque; Paypercut resolves its account and livemode. */
|
|
486
486
|
publishableKey: string;
|
|
487
|
+
/**
|
|
488
|
+
* Optional opaque connected account context for this client and all its Elements groups.
|
|
489
|
+
* The platform publishable key authenticates the request; Paypercut validates and authorizes the account.
|
|
490
|
+
* Omit to use the credential's default account. Create a new client to change accounts.
|
|
491
|
+
*/
|
|
492
|
+
account?: string;
|
|
487
493
|
/** Internal builds only. Production builds ignore this override. */
|
|
488
494
|
hostedCheckoutUrl?: string;
|
|
489
495
|
/** Internal builds only. Production builds ignore this override. */
|
|
@@ -796,8 +802,8 @@ interface ExpressCheckoutClickEvent {
|
|
|
796
802
|
resolve(options?: ExpressCheckoutClickResolveOptions): void;
|
|
797
803
|
reject(): void;
|
|
798
804
|
}
|
|
799
|
-
/**
|
|
800
|
-
interface
|
|
805
|
+
/** Mutable checkout details for an already mounted Express Checkout Element. */
|
|
806
|
+
interface ExpressCheckoutElementUpdateOptions {
|
|
801
807
|
lineItems?: ExpressCheckoutLineItem[];
|
|
802
808
|
emailRequired?: boolean;
|
|
803
809
|
phoneNumberRequired?: boolean;
|
|
@@ -807,13 +813,13 @@ interface ExpressCheckoutClickResolveOptions {
|
|
|
807
813
|
shippingRates?: ExpressCheckoutShippingRate[];
|
|
808
814
|
}
|
|
809
815
|
/**
|
|
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.
|
|
816
|
+
* Current checkout details supplied immediately before a wallet is opened.
|
|
817
|
+
* The amount and wallet details are applied to the same attempt atomically.
|
|
815
818
|
*/
|
|
816
|
-
|
|
819
|
+
interface ExpressCheckoutClickResolveOptions extends ExpressCheckoutElementUpdateOptions {
|
|
820
|
+
/** Authoritative order total in the group's currency, in minor units. */
|
|
821
|
+
amount?: number;
|
|
822
|
+
}
|
|
817
823
|
/** Updated checkout details returned after a wallet address or rate changes. */
|
|
818
824
|
interface ExpressCheckoutShippingUpdate {
|
|
819
825
|
/** Recalculated order total in the group's currency, in minor units. */
|
|
@@ -881,6 +887,7 @@ interface PaypercutInstance {
|
|
|
881
887
|
}
|
|
882
888
|
interface PaypercutStatic {
|
|
883
889
|
(options: PaypercutOptions): PaypercutInstance;
|
|
890
|
+
(publishableKey: string, options?: Omit<PaypercutOptions, 'publishableKey'>): PaypercutInstance;
|
|
884
891
|
version: string;
|
|
885
892
|
}
|
|
886
893
|
|
package/dist/index.d.mts
CHANGED
|
@@ -482,8 +482,14 @@ interface ExpressCheckoutStatic {
|
|
|
482
482
|
|
|
483
483
|
/** Options used to initialise the Paypercut browser client. */
|
|
484
484
|
interface PaypercutOptions {
|
|
485
|
-
/** Public browser credential. The value is opaque;
|
|
485
|
+
/** Public browser credential. The value is opaque; Paypercut resolves its account and livemode. */
|
|
486
486
|
publishableKey: string;
|
|
487
|
+
/**
|
|
488
|
+
* Optional opaque connected account context for this client and all its Elements groups.
|
|
489
|
+
* The platform publishable key authenticates the request; Paypercut validates and authorizes the account.
|
|
490
|
+
* Omit to use the credential's default account. Create a new client to change accounts.
|
|
491
|
+
*/
|
|
492
|
+
account?: string;
|
|
487
493
|
/** Internal builds only. Production builds ignore this override. */
|
|
488
494
|
hostedCheckoutUrl?: string;
|
|
489
495
|
/** Internal builds only. Production builds ignore this override. */
|
|
@@ -796,8 +802,8 @@ interface ExpressCheckoutClickEvent {
|
|
|
796
802
|
resolve(options?: ExpressCheckoutClickResolveOptions): void;
|
|
797
803
|
reject(): void;
|
|
798
804
|
}
|
|
799
|
-
/**
|
|
800
|
-
interface
|
|
805
|
+
/** Mutable checkout details for an already mounted Express Checkout Element. */
|
|
806
|
+
interface ExpressCheckoutElementUpdateOptions {
|
|
801
807
|
lineItems?: ExpressCheckoutLineItem[];
|
|
802
808
|
emailRequired?: boolean;
|
|
803
809
|
phoneNumberRequired?: boolean;
|
|
@@ -807,13 +813,13 @@ interface ExpressCheckoutClickResolveOptions {
|
|
|
807
813
|
shippingRates?: ExpressCheckoutShippingRate[];
|
|
808
814
|
}
|
|
809
815
|
/**
|
|
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.
|
|
816
|
+
* Current checkout details supplied immediately before a wallet is opened.
|
|
817
|
+
* The amount and wallet details are applied to the same attempt atomically.
|
|
815
818
|
*/
|
|
816
|
-
|
|
819
|
+
interface ExpressCheckoutClickResolveOptions extends ExpressCheckoutElementUpdateOptions {
|
|
820
|
+
/** Authoritative order total in the group's currency, in minor units. */
|
|
821
|
+
amount?: number;
|
|
822
|
+
}
|
|
817
823
|
/** Updated checkout details returned after a wallet address or rate changes. */
|
|
818
824
|
interface ExpressCheckoutShippingUpdate {
|
|
819
825
|
/** Recalculated order total in the group's currency, in minor units. */
|
|
@@ -881,6 +887,7 @@ interface PaypercutInstance {
|
|
|
881
887
|
}
|
|
882
888
|
interface PaypercutStatic {
|
|
883
889
|
(options: PaypercutOptions): PaypercutInstance;
|
|
890
|
+
(publishableKey: string, options?: Omit<PaypercutOptions, 'publishableKey'>): PaypercutInstance;
|
|
884
891
|
version: string;
|
|
885
892
|
}
|
|
886
893
|
|
package/dist/index.d.ts
CHANGED
|
@@ -482,8 +482,14 @@ interface ExpressCheckoutStatic {
|
|
|
482
482
|
|
|
483
483
|
/** Options used to initialise the Paypercut browser client. */
|
|
484
484
|
interface PaypercutOptions {
|
|
485
|
-
/** Public browser credential. The value is opaque;
|
|
485
|
+
/** Public browser credential. The value is opaque; Paypercut resolves its account and livemode. */
|
|
486
486
|
publishableKey: string;
|
|
487
|
+
/**
|
|
488
|
+
* Optional opaque connected account context for this client and all its Elements groups.
|
|
489
|
+
* The platform publishable key authenticates the request; Paypercut validates and authorizes the account.
|
|
490
|
+
* Omit to use the credential's default account. Create a new client to change accounts.
|
|
491
|
+
*/
|
|
492
|
+
account?: string;
|
|
487
493
|
/** Internal builds only. Production builds ignore this override. */
|
|
488
494
|
hostedCheckoutUrl?: string;
|
|
489
495
|
/** Internal builds only. Production builds ignore this override. */
|
|
@@ -796,8 +802,8 @@ interface ExpressCheckoutClickEvent {
|
|
|
796
802
|
resolve(options?: ExpressCheckoutClickResolveOptions): void;
|
|
797
803
|
reject(): void;
|
|
798
804
|
}
|
|
799
|
-
/**
|
|
800
|
-
interface
|
|
805
|
+
/** Mutable checkout details for an already mounted Express Checkout Element. */
|
|
806
|
+
interface ExpressCheckoutElementUpdateOptions {
|
|
801
807
|
lineItems?: ExpressCheckoutLineItem[];
|
|
802
808
|
emailRequired?: boolean;
|
|
803
809
|
phoneNumberRequired?: boolean;
|
|
@@ -807,13 +813,13 @@ interface ExpressCheckoutClickResolveOptions {
|
|
|
807
813
|
shippingRates?: ExpressCheckoutShippingRate[];
|
|
808
814
|
}
|
|
809
815
|
/**
|
|
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.
|
|
816
|
+
* Current checkout details supplied immediately before a wallet is opened.
|
|
817
|
+
* The amount and wallet details are applied to the same attempt atomically.
|
|
815
818
|
*/
|
|
816
|
-
|
|
819
|
+
interface ExpressCheckoutClickResolveOptions extends ExpressCheckoutElementUpdateOptions {
|
|
820
|
+
/** Authoritative order total in the group's currency, in minor units. */
|
|
821
|
+
amount?: number;
|
|
822
|
+
}
|
|
817
823
|
/** Updated checkout details returned after a wallet address or rate changes. */
|
|
818
824
|
interface ExpressCheckoutShippingUpdate {
|
|
819
825
|
/** Recalculated order total in the group's currency, in minor units. */
|
|
@@ -881,6 +887,7 @@ interface PaypercutInstance {
|
|
|
881
887
|
}
|
|
882
888
|
interface PaypercutStatic {
|
|
883
889
|
(options: PaypercutOptions): PaypercutInstance;
|
|
890
|
+
(publishableKey: string, options?: Omit<PaypercutOptions, 'publishableKey'>): PaypercutInstance;
|
|
884
891
|
version: string;
|
|
885
892
|
}
|
|
886
893
|
|