@bigcommerce/checkout-sdk 1.321.0 → 1.323.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/CHANGELOG.md +29 -0
- package/dist/checkout-button.d.ts +6 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +37 -1
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +3 -1
- package/docs/interfaces/GooglePayButtonInitializeOptions.md +15 -0
- package/docs/interfaces/PayPalCommerceCustomerInitializeOptions.md +56 -0
- package/docs/interfaces/WithPayPalCommerceCustomerInitializeOptions.md +18 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -4558,7 +4558,7 @@ declare interface CustomerGroup {
|
|
|
4558
4558
|
name: string;
|
|
4559
4559
|
}
|
|
4560
4560
|
|
|
4561
|
-
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions;
|
|
4561
|
+
declare type CustomerInitializeOptions = BaseCustomerInitializeOptions & WithApplePayCustomerInitializeOptions & WithPayPalCommerceCustomerInitializeOptions;
|
|
4562
4562
|
|
|
4563
4563
|
declare interface CustomerPasswordRequirements {
|
|
4564
4564
|
alpha: string;
|
|
@@ -4964,6 +4964,12 @@ declare interface GooglePayButtonInitializeOptions {
|
|
|
4964
4964
|
* short: Google Pay payment button without the "Buy with" text.
|
|
4965
4965
|
*/
|
|
4966
4966
|
buttonType?: ButtonType;
|
|
4967
|
+
/**
|
|
4968
|
+
* The options that are required to initialize Buy Now functionality.
|
|
4969
|
+
*/
|
|
4970
|
+
buyNowInitializeOptions?: {
|
|
4971
|
+
getBuyNowCartRequestBody?(): BuyNowCartRequestBody | void;
|
|
4972
|
+
};
|
|
4967
4973
|
}
|
|
4968
4974
|
|
|
4969
4975
|
declare interface GooglePayCustomerInitializeOptions {
|
|
@@ -6012,6 +6018,28 @@ declare interface PasswordRequirements {
|
|
|
6012
6018
|
error: string;
|
|
6013
6019
|
}
|
|
6014
6020
|
|
|
6021
|
+
/**
|
|
6022
|
+
* A set of options that are required to initialize the customer step of
|
|
6023
|
+
* checkout to support PayPalCommerce.
|
|
6024
|
+
*/
|
|
6025
|
+
declare interface PayPalCommerceCustomerInitializeOptions {
|
|
6026
|
+
/**
|
|
6027
|
+
* The ID of a container which the checkout button should be inserted into.
|
|
6028
|
+
*/
|
|
6029
|
+
container: string;
|
|
6030
|
+
/**
|
|
6031
|
+
* A callback that gets called if unable to initialize the widget or select
|
|
6032
|
+
* one of the address options provided by the widget.
|
|
6033
|
+
*
|
|
6034
|
+
* @param error - The error object describing the failure.
|
|
6035
|
+
*/
|
|
6036
|
+
onError?(error?: Error): void;
|
|
6037
|
+
/**
|
|
6038
|
+
* A callback that gets called when payment complete on paypal side.
|
|
6039
|
+
*/
|
|
6040
|
+
onComplete?(): void;
|
|
6041
|
+
}
|
|
6042
|
+
|
|
6015
6043
|
declare interface PayPalInstrument extends BaseAccountInstrument {
|
|
6016
6044
|
method: 'paypal';
|
|
6017
6045
|
}
|
|
@@ -7684,6 +7712,14 @@ declare interface WithMollieIssuerInstrument {
|
|
|
7684
7712
|
shopper_locale: string;
|
|
7685
7713
|
}
|
|
7686
7714
|
|
|
7715
|
+
declare interface WithPayPalCommerceCustomerInitializeOptions {
|
|
7716
|
+
/**
|
|
7717
|
+
* The options that are required to initialize the customer step of checkout
|
|
7718
|
+
* when using PayPalCommerce.
|
|
7719
|
+
*/
|
|
7720
|
+
paypalcommerce?: PayPalCommerceCustomerInitializeOptions;
|
|
7721
|
+
}
|
|
7722
|
+
|
|
7687
7723
|
declare interface WithSquareV2PaymentInitializeOptions {
|
|
7688
7724
|
/**
|
|
7689
7725
|
* The options that are required to initialize the Square payment method.
|