@bigcommerce/checkout-sdk 1.314.2 → 1.316.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.
@@ -1176,6 +1176,11 @@ declare interface BaseCustomerInitializeOptions extends CustomerRequestOptions {
1176
1176
  * They can be omitted unless you need to support GooglePay.
1177
1177
  */
1178
1178
  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;
1179
1184
  /**
1180
1185
  * The options that are required to initialize the Customer Stripe Upe payment method.
1181
1186
  * They can be omitted unless you need to support Customer Stripe Upe.
@@ -6309,6 +6314,28 @@ declare interface PaypalCommerceCreditCardPaymentInitializeOptions {
6309
6314
  form: PaypalCommerceFormOptions;
6310
6315
  }
6311
6316
 
6317
+ /**
6318
+ * A set of options that are required to initialize the customer step of
6319
+ * checkout to support PayPalCommerce.
6320
+ */
6321
+ declare interface PaypalCommerceCustomerInitializeOptions {
6322
+ /**
6323
+ * The ID of a container which the checkout button should be inserted into.
6324
+ */
6325
+ container: string;
6326
+ /**
6327
+ * A callback that gets called if unable to initialize the widget or select
6328
+ * one of the address options provided by the widget.
6329
+ *
6330
+ * @param error - The error object describing the failure.
6331
+ */
6332
+ onError?(error?: Error): void;
6333
+ /**
6334
+ * A callback that gets called when payment complete on paypal side.
6335
+ */
6336
+ onComplete?(): void;
6337
+ }
6338
+
6312
6339
  declare type PaypalCommerceFormFieldBlurEventData = PaypalCommerceFormFieldKeyboardEventData;
6313
6340
 
6314
6341
  declare interface PaypalCommerceFormFieldCardTypeChangeEventData {