@bigcommerce/checkout-sdk 1.943.2 → 1.945.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/dist/cjs/checkout-button.js +1 -1
- package/dist/cjs/checkout-sdk-essential.js +1 -1
- package/dist/cjs/checkout-sdk.js +1 -1
- package/dist/cjs/hosted-form-v2-iframe-host.js +1 -1
- package/dist/cjs/integrations/amazon-pay.js +1 -1
- package/dist/cjs/integrations/bigcommerce-payments.js +1 -1
- package/dist/cjs/integrations/braintree.js +1 -1
- package/dist/cjs/integrations/braintree.js.map +1 -1
- package/dist/cjs/integrations/google-pay.js +1 -1
- package/dist/cjs/integrations/klarna.js +1 -1
- package/dist/cjs/integrations/paypal-commerce.js +1 -1
- package/dist/cjs/integrations/paypal-commerce.js.map +1 -1
- package/dist/cjs/integrations/paypal-express.js +1 -1
- package/dist/cjs/integrations/zip.js +1 -1
- package/dist/cjs/wallet-button.js +1 -1
- package/dist/cjs/wallet-button.js.map +1 -1
- package/dist/esm/checkout-button.js +1 -1
- package/dist/esm/checkout-sdk-essential.js +1 -1
- package/dist/esm/checkout-sdk.js +1 -1
- package/dist/esm/hosted-form-v2-iframe-host.js +1 -1
- package/dist/esm/integrations/amazon-pay.js +1 -1
- package/dist/esm/integrations/bigcommerce-payments.js +1 -1
- package/dist/esm/integrations/braintree.js +1 -1
- package/dist/esm/integrations/braintree.js.map +1 -1
- package/dist/esm/integrations/google-pay.js +1 -1
- package/dist/esm/integrations/klarna.js +1 -1
- package/dist/esm/integrations/paypal-commerce.js +1 -1
- package/dist/esm/integrations/paypal-commerce.js.map +1 -1
- package/dist/esm/integrations/paypal-express.js +1 -1
- package/dist/esm/integrations/zip.js +1 -1
- package/dist/esm/wallet-button.js +1 -1
- package/dist/esm/wallet-button.js.map +1 -1
- package/dist/types/integrations/braintree.d.ts +61 -0
- package/dist/types/integrations/paypal-commerce.d.ts +26 -0
- package/package.json +1 -1
|
@@ -673,6 +673,32 @@ declare class BraintreePaypalCreditCustomerStrategy implements CustomerStrategy
|
|
|
673
673
|
private handleError;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
+
declare interface BraintreePaypalCreditWalletInitializeOptions {
|
|
677
|
+
cartId: string;
|
|
678
|
+
amount: number;
|
|
679
|
+
currency: {
|
|
680
|
+
code: string;
|
|
681
|
+
};
|
|
682
|
+
initializationData: string;
|
|
683
|
+
clientToken: string;
|
|
684
|
+
style?: PaypalStyleOptions;
|
|
685
|
+
onAuthorizeError?(error: BraintreeError | StandardError): void;
|
|
686
|
+
onPaymentError?(error: BraintreeError | StandardError): void;
|
|
687
|
+
onError?(error: BraintreeError | StandardError): void;
|
|
688
|
+
onEligibilityFailure?(): void;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
declare class BraintreePaypalCreditWalletStrategy implements CheckoutButtonStrategy {
|
|
692
|
+
private braintreePaypalWalletService;
|
|
693
|
+
private braintreeHostWindow;
|
|
694
|
+
constructor(braintreePaypalWalletService: BraintreePaypalWalletService, braintreeHostWindow: BraintreeHostWindow);
|
|
695
|
+
initialize(options: CheckoutButtonInitializeOptions & WithBraintreePaypalCreditWalletInitializeOptions): Promise<void>;
|
|
696
|
+
deinitialize(): Promise<void>;
|
|
697
|
+
private renderButton;
|
|
698
|
+
private setupPayment;
|
|
699
|
+
private tokenizePayment;
|
|
700
|
+
}
|
|
701
|
+
|
|
676
702
|
declare interface BraintreePaypalCustomerInitializeOptions {
|
|
677
703
|
/**
|
|
678
704
|
* The ID of a container which the checkout button should be inserted into.
|
|
@@ -891,6 +917,25 @@ declare interface BraintreeVenmoPaymentStrategyInitializeOptions {
|
|
|
891
917
|
allowDesktop?: boolean;
|
|
892
918
|
}
|
|
893
919
|
|
|
920
|
+
declare interface BraintreeVenmoWalletInitializeOptions {
|
|
921
|
+
cartId: string;
|
|
922
|
+
initializationData: string;
|
|
923
|
+
clientToken: string;
|
|
924
|
+
style?: PaypalStyleOptions;
|
|
925
|
+
onAuthorizeError?(error: BraintreeError | StandardError): void;
|
|
926
|
+
onError?(error: BraintreeError | StandardError): void;
|
|
927
|
+
onEligibilityFailure?(): void;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
declare class BraintreeVenmoWalletStrategy implements CheckoutButtonStrategy {
|
|
931
|
+
private braintreePaypalWalletService;
|
|
932
|
+
constructor(braintreePaypalWalletService: BraintreePaypalWalletService);
|
|
933
|
+
initialize(options: CheckoutButtonInitializeOptions & WithBraintreeVenmoWalletInitializeOptions): Promise<void>;
|
|
934
|
+
deinitialize(): Promise<void>;
|
|
935
|
+
private handleInitializationError;
|
|
936
|
+
private renderButton;
|
|
937
|
+
}
|
|
938
|
+
|
|
894
939
|
declare class BraintreeVisaCheckoutButtonStrategy implements CheckoutButtonStrategy {
|
|
895
940
|
private paymentIntegrationService;
|
|
896
941
|
private formPoster;
|
|
@@ -1022,6 +1067,10 @@ declare interface WithBraintreePaypalCreditCustomerInitializeOptions {
|
|
|
1022
1067
|
braintreepaypalcredit?: BraintreePaypalCreditCustomerInitializeOptions;
|
|
1023
1068
|
}
|
|
1024
1069
|
|
|
1070
|
+
declare interface WithBraintreePaypalCreditWalletInitializeOptions {
|
|
1071
|
+
braintreepaypalcredit?: BraintreePaypalCreditWalletInitializeOptions;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1025
1074
|
declare interface WithBraintreePaypalCustomerInitializeOptions {
|
|
1026
1075
|
/**
|
|
1027
1076
|
* The options that are required to initialize the customer step of checkout
|
|
@@ -1058,6 +1107,10 @@ declare interface WithBraintreeVenmoInitializeOptions_2 {
|
|
|
1058
1107
|
braintreevenmo?: BraintreeVenmoButtonInitializeOptions;
|
|
1059
1108
|
}
|
|
1060
1109
|
|
|
1110
|
+
declare interface WithBraintreeVenmoWalletInitializeOptions {
|
|
1111
|
+
braintreevenmo?: BraintreeVenmoWalletInitializeOptions;
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1061
1114
|
declare interface WithBraintreeVisaCheckoutCustomerInitializeOptions {
|
|
1062
1115
|
braintreevisacheckout?: BraintreeVisaCheckoutCustomerInitializeOptions;
|
|
1063
1116
|
}
|
|
@@ -1098,6 +1151,10 @@ export declare const createBraintreePaypalCreditCustomerStrategy: import("@bigco
|
|
|
1098
1151
|
id: string;
|
|
1099
1152
|
}>;
|
|
1100
1153
|
|
|
1154
|
+
export declare const createBraintreePaypalCreditWalletStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<WalletPaymentButtonStrategyFactory<BraintreePaypalCreditWalletStrategy>, {
|
|
1155
|
+
id: string;
|
|
1156
|
+
}>;
|
|
1157
|
+
|
|
1101
1158
|
export declare const createBraintreePaypalCustomerStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<CustomerStrategyFactory<BraintreePaypalCustomerStrategy>, {
|
|
1102
1159
|
id: string;
|
|
1103
1160
|
}>;
|
|
@@ -1118,6 +1175,10 @@ export declare const createBraintreeVenmoPaymentStrategy: import("@bigcommerce/c
|
|
|
1118
1175
|
id: string;
|
|
1119
1176
|
}>;
|
|
1120
1177
|
|
|
1178
|
+
export declare const createBraintreeVenmoWalletStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<WalletPaymentButtonStrategyFactory<BraintreeVenmoWalletStrategy>, {
|
|
1179
|
+
id: string;
|
|
1180
|
+
}>;
|
|
1181
|
+
|
|
1121
1182
|
export declare const createBraintreeVisaCheckoutButtonStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<CheckoutButtonStrategyFactory<BraintreeVisaCheckoutButtonStrategy>, {
|
|
1122
1183
|
id: string;
|
|
1123
1184
|
}>;
|
|
@@ -887,6 +887,24 @@ declare class PayPalCommerceCreditPaymentStrategy implements PaymentStrategy {
|
|
|
887
887
|
private renderMessages;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
+
declare interface PayPalCommerceCreditWalletInitializeOptions {
|
|
891
|
+
cartId: string;
|
|
892
|
+
currency: {
|
|
893
|
+
code: string;
|
|
894
|
+
};
|
|
895
|
+
initializationData: string;
|
|
896
|
+
clientToken: string;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
declare class PayPalCommerceCreditWalletStrategy implements CheckoutButtonStrategy {
|
|
900
|
+
private paypalCommerceHeadlessWalletButtonService;
|
|
901
|
+
constructor(paypalCommerceHeadlessWalletButtonService: PaypalCommerceWalletService);
|
|
902
|
+
initialize(options: CheckoutButtonInitializeOptions & WithPayPalCommerceCreditWalletInitializeOptions): Promise<void>;
|
|
903
|
+
deinitialize(): Promise<void>;
|
|
904
|
+
private renderButton;
|
|
905
|
+
private mapOrderDetailsToBillingAddress;
|
|
906
|
+
}
|
|
907
|
+
|
|
890
908
|
/**
|
|
891
909
|
* A set of options that are required to initialize the customer step of
|
|
892
910
|
* checkout to support PayPalCommerce.
|
|
@@ -2032,6 +2050,10 @@ declare interface WithPayPalCommerceCreditPaymentInitializeOptions {
|
|
|
2032
2050
|
paypalcommercecredit?: PayPalCommerceCreditPaymentInitializeOptions;
|
|
2033
2051
|
}
|
|
2034
2052
|
|
|
2053
|
+
declare interface WithPayPalCommerceCreditWalletInitializeOptions {
|
|
2054
|
+
paypalcommercepaypalcredit?: PayPalCommerceCreditWalletInitializeOptions;
|
|
2055
|
+
}
|
|
2056
|
+
|
|
2035
2057
|
declare interface WithPayPalCommerceCustomerInitializeOptions {
|
|
2036
2058
|
/**
|
|
2037
2059
|
* The options that are required to initialize the customer step of checkout
|
|
@@ -2097,6 +2119,10 @@ export declare const createPayPalCommerceCreditPaymentStrategy: import("@bigcomm
|
|
|
2097
2119
|
id: string;
|
|
2098
2120
|
}>;
|
|
2099
2121
|
|
|
2122
|
+
export declare const createPayPalCommerceCreditWalletStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<WalletPaymentButtonStrategyFactory<PayPalCommerceCreditWalletStrategy>, {
|
|
2123
|
+
id: string;
|
|
2124
|
+
}>;
|
|
2125
|
+
|
|
2100
2126
|
export declare const createPayPalCommerceCustomerStrategy: import("@bigcommerce/checkout-sdk/payment-integration-api").ResolvableModule<CustomerStrategyFactory<PayPalCommerceCustomerStrategy>, {
|
|
2101
2127
|
id: string;
|
|
2102
2128
|
}>;
|