@bigcommerce/checkout-sdk 1.250.0 → 1.253.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.
@@ -1200,6 +1200,36 @@ declare interface BraintreePaymentInitializeOptions {
1200
1200
  form?: BraintreeFormOptions;
1201
1201
  }
1202
1202
 
1203
+ declare interface BraintreePaypalCreditButtonInitializeOptions {
1204
+ /**
1205
+ * A set of styling options for the checkout button.
1206
+ */
1207
+ style?: Pick<PaypalButtonStyleOptions, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
1208
+ /**
1209
+ * Address to be used for shipping.
1210
+ * If not provided, it will use the first saved address from the active customer.
1211
+ */
1212
+ shippingAddress?: Address | null;
1213
+ /**
1214
+ * A callback that gets called if unable to authorize and tokenize payment.
1215
+ *
1216
+ * @param error - The error object describing the failure.
1217
+ */
1218
+ onAuthorizeError?(error: BraintreeError | StandardError): void;
1219
+ /**
1220
+ * A callback that gets called if unable to submit payment.
1221
+ *
1222
+ * @param error - The error object describing the failure.
1223
+ */
1224
+ onPaymentError?(error: BraintreeError | StandardError): void;
1225
+ /**
1226
+ * A callback that gets called on any error instead of submit payment or authorization errors.
1227
+ *
1228
+ * @param error - The error object describing the failure.
1229
+ */
1230
+ onError?(error: BraintreeError | StandardError): void;
1231
+ }
1232
+
1203
1233
  declare interface BraintreePaypalV1ButtonInitializeOptions {
1204
1234
  /**
1205
1235
  * The ID of a container which the messaging should be inserted.
@@ -1275,6 +1305,15 @@ declare interface BraintreeThreeDSecureOptions {
1275
1305
  removeFrame(): void;
1276
1306
  }
1277
1307
 
1308
+ declare interface BraintreeVenmoButtonInitializeOptions {
1309
+ /**
1310
+ * A callback that gets called on any error.
1311
+ *
1312
+ * @param error - The error object describing the failure.
1313
+ */
1314
+ onError?(error: BraintreeError | StandardError): void;
1315
+ }
1316
+
1278
1317
  declare interface BraintreeVerifyPayload {
1279
1318
  nonce: string;
1280
1319
  details: {
@@ -1636,6 +1675,16 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
1636
1675
  * omitted unless you need to support Braintree Credit.
1637
1676
  */
1638
1677
  braintreepaypalcredit?: BraintreePaypalV1ButtonInitializeOptions;
1678
+ /**
1679
+ * The options that are required to facilitate Braintree Credit. They can be
1680
+ * omitted unless you need to support Braintree Credit.
1681
+ */
1682
+ braintreepaypalcreditv2?: BraintreePaypalCreditButtonInitializeOptions;
1683
+ /**
1684
+ * The options that are required to facilitate Braintree Venmo. They can be
1685
+ * omitted unless you need to support Braintree Venmo.
1686
+ */
1687
+ braintreevenmo?: BraintreeVenmoButtonInitializeOptions;
1639
1688
  /**
1640
1689
  * The options that are required to facilitate PayPal. They can be omitted
1641
1690
  * unless you need to support Paypal.
@@ -1791,8 +1840,10 @@ declare enum CheckoutButtonMethodType {
1791
1840
  APPLEPAY = "applepay",
1792
1841
  AMAZON_PAY_V2 = "amazonpay",
1793
1842
  BRAINTREE_PAYPAL = "braintreepaypal",
1843
+ BRAINTREE_PAYPALV2 = "braintreepaypalv2",
1794
1844
  BRAINTREE_VENMO = "braintreevenmo",
1795
1845
  BRAINTREE_PAYPAL_CREDIT = "braintreepaypalcredit",
1846
+ BRAINTREE_PAYPAL_CREDITV2 = "braintreepaypalcreditv2",
1796
1847
  GOOGLEPAY_ADYENV2 = "googlepayadyenv2",
1797
1848
  GOOGLEPAY_ADYENV3 = "googlepayadyenv3",
1798
1849
  GOOGLEPAY_AUTHORIZENET = "googlepayauthorizenet",