@bigcommerce/checkout-sdk 1.323.0 → 1.324.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.
@@ -1106,6 +1106,11 @@ declare interface BaseCustomerInitializeOptions extends CustomerRequestOptions {
1106
1106
  * when using AmazonPayV2.
1107
1107
  */
1108
1108
  amazonpay?: AmazonPayV2CustomerInitializeOptions;
1109
+ /**
1110
+ * The options that are required to initialize the customer step of checkout
1111
+ * when using Braintree PayPal provided.
1112
+ */
1113
+ braintreepaypal?: BraintreePaypalCustomerInitializeOptions;
1109
1114
  /**
1110
1115
  * The options that are required to initialize the customer step of checkout
1111
1116
  * when using Visa Checkout provided by Braintree.
@@ -1176,11 +1181,6 @@ declare interface BaseCustomerInitializeOptions extends CustomerRequestOptions {
1176
1181
  * They can be omitted unless you need to support GooglePay.
1177
1182
  */
1178
1183
  googlepaystripeupe?: GooglePayCustomerInitializeOptions;
1179
- /**
1180
- * The options that are required to initialize the PayPalCommerce payment method.
1181
- * They can be omitted unless you need to support PayPalCommerce.
1182
- */
1183
- paypalcommerce?: PaypalCommerceCustomerInitializeOptions;
1184
1184
  /**
1185
1185
  * The options that are required to initialize the Customer Stripe Upe payment method.
1186
1186
  * They can be omitted unless you need to support Customer Stripe Upe.
@@ -1812,6 +1812,19 @@ declare interface BraintreePaypalCreditButtonInitializeOptions {
1812
1812
  };
1813
1813
  }
1814
1814
 
1815
+ declare interface BraintreePaypalCustomerInitializeOptions {
1816
+ /**
1817
+ * The ID of a container which the checkout button should be inserted into.
1818
+ */
1819
+ container: string;
1820
+ /**
1821
+ * A callback that gets called on any error instead of submit payment or authorization errors.
1822
+ *
1823
+ * @param error - The error object describing the failure.
1824
+ */
1825
+ onError?(error: BraintreeError | StandardError): void;
1826
+ }
1827
+
1815
1828
  declare interface BraintreeStoredCardFieldOptions extends BraintreeFormFieldOptions {
1816
1829
  instrumentId: string;
1817
1830
  }
@@ -6351,28 +6364,6 @@ declare interface PaypalCommerceCreditCardPaymentInitializeOptions {
6351
6364
  form: PaypalCommerceFormOptions;
6352
6365
  }
6353
6366
 
6354
- /**
6355
- * A set of options that are required to initialize the customer step of
6356
- * checkout to support PayPalCommerce.
6357
- */
6358
- declare interface PaypalCommerceCustomerInitializeOptions {
6359
- /**
6360
- * The ID of a container which the checkout button should be inserted into.
6361
- */
6362
- container: string;
6363
- /**
6364
- * A callback that gets called if unable to initialize the widget or select
6365
- * one of the address options provided by the widget.
6366
- *
6367
- * @param error - The error object describing the failure.
6368
- */
6369
- onError?(error?: Error): void;
6370
- /**
6371
- * A callback that gets called when payment complete on paypal side.
6372
- */
6373
- onComplete?(): void;
6374
- }
6375
-
6376
6367
  declare type PaypalCommerceFormFieldBlurEventData = PaypalCommerceFormFieldKeyboardEventData;
6377
6368
 
6378
6369
  declare interface PaypalCommerceFormFieldCardTypeChangeEventData {