@bigcommerce/checkout-sdk 1.262.2 → 1.263.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 +11 -0
- package/dist/checkout-button.d.ts +29 -12
- 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 +29 -12
- 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/dist/hosted-form.js +1 -1
- package/dist/hosted-form.js.map +1 -1
- package/dist/hosted-form.umd.js +1 -1
- package/dist/hosted-form.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/enums/checkoutbuttonmethodtype.md +7 -0
- package/docs/interfaces/checkoutbuttoninitializeoptions.md +10 -0
- package/docs/interfaces/paypalbuttonstyleoptions_2.md +1 -1
- package/docs/interfaces/paypalcommercevenmobuttoninitializeoptions.md +30 -0
- package/package.json +5 -5
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1676,16 +1676,6 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
|
|
|
1676
1676
|
* omitted unless you need to support Braintree Venmo.
|
|
1677
1677
|
*/
|
|
1678
1678
|
braintreevenmo?: BraintreeVenmoButtonInitializeOptions;
|
|
1679
|
-
/**
|
|
1680
|
-
* The options that are required to facilitate PayPal. They can be omitted
|
|
1681
|
-
* unless you need to support Paypal.
|
|
1682
|
-
*/
|
|
1683
|
-
paypal?: PaypalButtonInitializeOptions;
|
|
1684
|
-
/**
|
|
1685
|
-
* The options that are required to facilitate PayPal Commerce. They can be omitted
|
|
1686
|
-
* unless you need to support Paypal.
|
|
1687
|
-
*/
|
|
1688
|
-
paypalCommerce?: PaypalCommerceButtonInitializeOptions;
|
|
1689
1679
|
/**
|
|
1690
1680
|
* The ID of a container which the checkout button should be inserted.
|
|
1691
1681
|
*/
|
|
@@ -1735,6 +1725,21 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
|
|
|
1735
1725
|
* They can be omitted unless you need to support Authorize.Net GooglePay.
|
|
1736
1726
|
*/
|
|
1737
1727
|
googlepayauthorizenet?: GooglePayButtonInitializeOptions;
|
|
1728
|
+
/**
|
|
1729
|
+
* The options that are required to facilitate PayPal. They can be omitted
|
|
1730
|
+
* unless you need to support Paypal.
|
|
1731
|
+
*/
|
|
1732
|
+
paypal?: PaypalButtonInitializeOptions;
|
|
1733
|
+
/**
|
|
1734
|
+
* The options that are required to facilitate PayPal Commerce. They can be omitted
|
|
1735
|
+
* unless you need to support Paypal.
|
|
1736
|
+
*/
|
|
1737
|
+
paypalCommerce?: PaypalCommerceButtonInitializeOptions;
|
|
1738
|
+
/**
|
|
1739
|
+
* The options that are required to facilitate PayPal Commerce Venmo. They can be omitted
|
|
1740
|
+
* unless you need to support PayPal Commerce Venmo.
|
|
1741
|
+
*/
|
|
1742
|
+
paypalcommercevenmo?: PaypalCommerceVenmoButtonInitializeOptions;
|
|
1738
1743
|
}
|
|
1739
1744
|
|
|
1740
1745
|
declare class CheckoutButtonInitializer {
|
|
@@ -1844,7 +1849,8 @@ declare enum CheckoutButtonMethodType {
|
|
|
1844
1849
|
GOOGLEPAY_STRIPEUPE = "googlepaystripeupe",
|
|
1845
1850
|
MASTERPASS = "masterpass",
|
|
1846
1851
|
PAYPALEXPRESS = "paypalexpress",
|
|
1847
|
-
PAYPALCOMMERCE = "paypalcommerce"
|
|
1852
|
+
PAYPALCOMMERCE = "paypalcommerce",
|
|
1853
|
+
PAYPALCOMMERCE_VENMO = "paypalcommercevenmo"
|
|
1848
1854
|
}
|
|
1849
1855
|
|
|
1850
1856
|
/**
|
|
@@ -5882,7 +5888,7 @@ declare interface PaypalButtonStyleOptions_2 {
|
|
|
5882
5888
|
layout?: StyleButtonLayout;
|
|
5883
5889
|
color?: StyleButtonColor;
|
|
5884
5890
|
shape?: StyleButtonShape;
|
|
5885
|
-
height?:
|
|
5891
|
+
height?: number;
|
|
5886
5892
|
label?: StyleButtonLabel;
|
|
5887
5893
|
tagline?: boolean;
|
|
5888
5894
|
}
|
|
@@ -6235,6 +6241,17 @@ declare interface PaypalCommerceStoredCardFieldsMap {
|
|
|
6235
6241
|
[PaypalCommerceFormFieldType.CardNumberVerification]?: PaypalCommerceStoredCardFieldOptions;
|
|
6236
6242
|
}
|
|
6237
6243
|
|
|
6244
|
+
declare interface PaypalCommerceVenmoButtonInitializeOptions {
|
|
6245
|
+
/**
|
|
6246
|
+
* A set of styling options for the checkout button.
|
|
6247
|
+
*/
|
|
6248
|
+
style?: PaypalButtonStyleOptions_2;
|
|
6249
|
+
/**
|
|
6250
|
+
* Flag which helps to detect that the strategy initializes on Checkout page
|
|
6251
|
+
*/
|
|
6252
|
+
initializesOnCheckoutPage?: boolean;
|
|
6253
|
+
}
|
|
6254
|
+
|
|
6238
6255
|
/**
|
|
6239
6256
|
* A set of options that are required to initialize the PayPal Express payment
|
|
6240
6257
|
* method.
|