@bigcommerce/checkout-sdk 1.383.2 → 1.384.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.
@@ -1574,6 +1574,31 @@ declare interface BraintreeFormOptions {
1574
1574
  onEnter?(data: BraintreeFormFieldEnterEventData): void;
1575
1575
  }
1576
1576
 
1577
+ declare interface BraintreeLocalMethods {
1578
+ /**
1579
+ * The CSS selector of a container where the payment widget should be inserted into.
1580
+ */
1581
+ container: string;
1582
+ /**
1583
+ * Text that will be displayed on lpm button
1584
+ */
1585
+ buttonText: string;
1586
+ /**
1587
+ * A callback right before render Smart Payment Button that gets called when
1588
+ * This callback can be used to hide the standard submit button.
1589
+ */
1590
+ onRenderButton?(): void;
1591
+ /**
1592
+ * A callback for submitting payment form that gets called
1593
+ * when buyer approved PayPal account.
1594
+ */
1595
+ submitForm?(): void;
1596
+ /**
1597
+ * A callback for displaying error popup. This callback requires error object as parameter.
1598
+ */
1599
+ onError(error: unknown): void;
1600
+ }
1601
+
1577
1602
  /**
1578
1603
  * A set of options that are required to initialize the Braintree payment
1579
1604
  * method. You need to provide the options if you want to support 3D Secure
@@ -6615,7 +6640,7 @@ declare interface PayPalInstrument extends BaseAccountInstrument {
6615
6640
  method: 'paypal';
6616
6641
  }
6617
6642
 
6618
- declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithSquareV2PaymentInitializeOptions;
6643
+ declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithBraintreeLocalMethodsPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithSquareV2PaymentInitializeOptions;
6619
6644
 
6620
6645
  declare type PaymentInstrument = CardInstrument | AccountInstrument;
6621
6646
 
@@ -7787,6 +7812,10 @@ declare interface WithBoltPaymentInitializeOptions {
7787
7812
  bolt?: BoltPaymentInitializeOptions;
7788
7813
  }
7789
7814
 
7815
+ declare interface WithBraintreeLocalMethodsPaymentInitializeOptions {
7816
+ braintreelocalmethods?: BraintreeLocalMethods;
7817
+ }
7818
+
7790
7819
  declare interface WithBraintreePaypalAchPaymentInitializeOptions {
7791
7820
  /**
7792
7821
  * The options that are required to initialize the Braintree ACH payment