@bigcommerce/checkout-sdk 1.250.0 → 1.251.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/docs/README.md CHANGED
@@ -106,6 +106,7 @@
106
106
  * [BraintreeFormFieldsMap](interfaces/braintreeformfieldsmap.md)
107
107
  * [BraintreeFormOptions](interfaces/braintreeformoptions.md)
108
108
  * [BraintreePaymentInitializeOptions](interfaces/braintreepaymentinitializeoptions.md)
109
+ * [BraintreePaypalCreditButtonInitializeOptions](interfaces/braintreepaypalcreditbuttoninitializeoptions.md)
109
110
  * [BraintreePaypalV1ButtonInitializeOptions](interfaces/braintreepaypalv1buttoninitializeoptions.md)
110
111
  * [BraintreeStoredCardFieldOptions](interfaces/braintreestoredcardfieldoptions.md)
111
112
  * [BraintreeStoredCardFieldsMap](interfaces/braintreestoredcardfieldsmap.md)
@@ -10,6 +10,7 @@
10
10
  * [APPLEPAY](checkoutbuttonmethodtype.md#applepay)
11
11
  * [BRAINTREE_PAYPAL](checkoutbuttonmethodtype.md#braintree_paypal)
12
12
  * [BRAINTREE_PAYPAL_CREDIT](checkoutbuttonmethodtype.md#braintree_paypal_credit)
13
+ * [BRAINTREE_PAYPAL_CREDITV2](checkoutbuttonmethodtype.md#braintree_paypal_creditv2)
13
14
  * [BRAINTREE_VENMO](checkoutbuttonmethodtype.md#braintree_venmo)
14
15
  * [GOOGLEPAY_ADYENV2](checkoutbuttonmethodtype.md#googlepay_adyenv2)
15
16
  * [GOOGLEPAY_ADYENV3](checkoutbuttonmethodtype.md#googlepay_adyenv3)
@@ -50,6 +51,12 @@ ___
50
51
 
51
52
  ___
52
53
 
54
+ ### BRAINTREE_PAYPAL_CREDITV2
55
+
56
+ • **BRAINTREE_PAYPAL_CREDITV2**: = "braintreepaypalcreditv2"
57
+
58
+ ___
59
+
53
60
  ### BRAINTREE_VENMO
54
61
 
55
62
  • **BRAINTREE_VENMO**: = "braintreevenmo"
@@ -0,0 +1,85 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [BraintreePaypalCreditButtonInitializeOptions](braintreepaypalcreditbuttoninitializeoptions.md)
2
+
3
+ # Interface: BraintreePaypalCreditButtonInitializeOptions
4
+
5
+ ## Hierarchy
6
+
7
+ * **BraintreePaypalCreditButtonInitializeOptions**
8
+
9
+ ## Index
10
+
11
+ ### Properties
12
+
13
+ * [shippingAddress](braintreepaypalcreditbuttoninitializeoptions.md#optional-shippingaddress)
14
+ * [style](braintreepaypalcreditbuttoninitializeoptions.md#optional-style)
15
+
16
+ ### Methods
17
+
18
+ * [onAuthorizeError](braintreepaypalcreditbuttoninitializeoptions.md#optional-onauthorizeerror)
19
+ * [onError](braintreepaypalcreditbuttoninitializeoptions.md#optional-onerror)
20
+ * [onPaymentError](braintreepaypalcreditbuttoninitializeoptions.md#optional-onpaymenterror)
21
+
22
+ ## Properties
23
+
24
+ ### `Optional` shippingAddress
25
+
26
+ • **shippingAddress**? : *[Address](address.md) | null*
27
+
28
+ Address to be used for shipping.
29
+ If not provided, it will use the first saved address from the active customer.
30
+
31
+ ___
32
+
33
+ ### `Optional` style
34
+
35
+ • **style**? : *Pick‹[PaypalButtonStyleOptions](paypalbuttonstyleoptions.md), "layout" | "size" | "color" | "label" | "shape" | "tagline" | "fundingicons" | "height"›*
36
+
37
+ A set of styling options for the checkout button.
38
+
39
+ ## Methods
40
+
41
+ ### `Optional` onAuthorizeError
42
+
43
+ ▸ **onAuthorizeError**(`error`: [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md)): *void*
44
+
45
+ A callback that gets called if unable to authorize and tokenize payment.
46
+
47
+ **Parameters:**
48
+
49
+ Name | Type | Description |
50
+ ------ | ------ | ------ |
51
+ `error` | [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md) | The error object describing the failure. |
52
+
53
+ **Returns:** *void*
54
+
55
+ ___
56
+
57
+ ### `Optional` onError
58
+
59
+ ▸ **onError**(`error`: [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md)): *void*
60
+
61
+ A callback that gets called on any error instead of submit payment or authorization errors.
62
+
63
+ **Parameters:**
64
+
65
+ Name | Type | Description |
66
+ ------ | ------ | ------ |
67
+ `error` | [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md) | The error object describing the failure. |
68
+
69
+ **Returns:** *void*
70
+
71
+ ___
72
+
73
+ ### `Optional` onPaymentError
74
+
75
+ ▸ **onPaymentError**(`error`: [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md)): *void*
76
+
77
+ A callback that gets called if unable to submit payment.
78
+
79
+ **Parameters:**
80
+
81
+ Name | Type | Description |
82
+ ------ | ------ | ------ |
83
+ `error` | [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md) | The error object describing the failure. |
84
+
85
+ **Returns:** *void*
@@ -20,6 +20,7 @@
20
20
  * [applepay](checkoutbuttoninitializeoptions.md#optional-applepay)
21
21
  * [braintreepaypal](checkoutbuttoninitializeoptions.md#optional-braintreepaypal)
22
22
  * [braintreepaypalcredit](checkoutbuttoninitializeoptions.md#optional-braintreepaypalcredit)
23
+ * [braintreepaypalcreditv2](checkoutbuttoninitializeoptions.md#optional-braintreepaypalcreditv2)
23
24
  * [containerId](checkoutbuttoninitializeoptions.md#containerid)
24
25
  * [googlepayadyenv2](checkoutbuttoninitializeoptions.md#optional-googlepayadyenv2)
25
26
  * [googlepayadyenv3](checkoutbuttoninitializeoptions.md#optional-googlepayadyenv3)
@@ -74,6 +75,15 @@ omitted unless you need to support Braintree Credit.
74
75
 
75
76
  ___
76
77
 
78
+ ### `Optional` braintreepaypalcreditv2
79
+
80
+ • **braintreepaypalcreditv2**? : *[BraintreePaypalCreditButtonInitializeOptions](braintreepaypalcreditbuttoninitializeoptions.md)*
81
+
82
+ The options that are required to facilitate Braintree Credit. They can be
83
+ omitted unless you need to support Braintree Credit.
84
+
85
+ ___
86
+
77
87
  ### containerId
78
88
 
79
89
  • **containerId**: *string*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.250.0",
3
+ "version": "1.251.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",