@bigcommerce/checkout-sdk 1.248.2 → 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
@@ -19,6 +19,11 @@
19
19
  * [HostedFieldType](enums/hostedfieldtype.md)
20
20
  * [HostedInputEventType](enums/hostedinputeventtype.md)
21
21
  * [IconStyle](enums/iconstyle.md)
22
+ * [PaypalButtonStyleColorOption](enums/paypalbuttonstylecoloroption.md)
23
+ * [PaypalButtonStyleLabelOption](enums/paypalbuttonstylelabeloption.md)
24
+ * [PaypalButtonStyleLayoutOption](enums/paypalbuttonstylelayoutoption.md)
25
+ * [PaypalButtonStyleShapeOption](enums/paypalbuttonstyleshapeoption.md)
26
+ * [PaypalButtonStyleSizeOption](enums/paypalbuttonstylesizeoption.md)
22
27
  * [PaypalCommerceFormFieldType](enums/paypalcommerceformfieldtype.md)
23
28
  * [RadiusUnit](enums/radiusunit.md)
24
29
  * [StyleButtonColor](enums/stylebuttoncolor.md)
@@ -101,7 +106,8 @@
101
106
  * [BraintreeFormFieldsMap](interfaces/braintreeformfieldsmap.md)
102
107
  * [BraintreeFormOptions](interfaces/braintreeformoptions.md)
103
108
  * [BraintreePaymentInitializeOptions](interfaces/braintreepaymentinitializeoptions.md)
104
- * [BraintreePaypalButtonInitializeOptions](interfaces/braintreepaypalbuttoninitializeoptions.md)
109
+ * [BraintreePaypalCreditButtonInitializeOptions](interfaces/braintreepaypalcreditbuttoninitializeoptions.md)
110
+ * [BraintreePaypalV1ButtonInitializeOptions](interfaces/braintreepaypalv1buttoninitializeoptions.md)
105
111
  * [BraintreeStoredCardFieldOptions](interfaces/braintreestoredcardfieldoptions.md)
106
112
  * [BraintreeStoredCardFieldsMap](interfaces/braintreestoredcardfieldsmap.md)
107
113
  * [BraintreeThreeDSecureOptions](interfaces/braintreethreedsecureoptions.md)
@@ -373,6 +379,7 @@
373
379
  * [HostedVaultedInstrument](README.md#hostedvaultedinstrument)
374
380
  * [Instrument](README.md#instrument)
375
381
  * [Omit](README.md#omit)
382
+ * [OrderPaymentInstrument](README.md#orderpaymentinstrument)
376
383
  * [OrderPayments](README.md#orderpayments)
377
384
  * [PaymentInstrument](README.md#paymentinstrument)
378
385
  * [PaypalCommerceFormFieldBlurEventData](README.md#paypalcommerceformfieldblureventdata)
@@ -584,6 +591,12 @@ ___
584
591
 
585
592
  ___
586
593
 
594
+ ### OrderPaymentInstrument
595
+
596
+ Ƭ **OrderPaymentInstrument**: *[CreditCardInstrument](interfaces/creditcardinstrument.md) | [HostedInstrument](interfaces/hostedinstrument.md) | object | [VaultedInstrument](interfaces/vaultedinstrument.md) | object | [NonceInstrument](interfaces/nonceinstrument.md) | [CreditCardInstrument](interfaces/creditcardinstrument.md) & [WithDocumentInstrument](interfaces/withdocumentinstrument.md) | [CreditCardInstrument](interfaces/creditcardinstrument.md) & [WithCheckoutcomFawryInstrument](interfaces/withcheckoutcomfawryinstrument.md) | [CreditCardInstrument](interfaces/creditcardinstrument.md) & [WithCheckoutcomSEPAInstrument](interfaces/withcheckoutcomsepainstrument.md) | [CreditCardInstrument](interfaces/creditcardinstrument.md) & [WithCheckoutcomiDealInstrument](interfaces/withcheckoutcomidealinstrument.md) | [HostedInstrument](interfaces/hostedinstrument.md) & [WithMollieIssuerInstrument](interfaces/withmollieissuerinstrument.md) | [WithAccountCreation](interfaces/withaccountcreation.md)*
597
+
598
+ ___
599
+
587
600
  ### OrderPayments
588
601
 
589
602
  Ƭ **OrderPayments**: *Array‹[GatewayOrderPayment](interfaces/gatewayorderpayment.md) | [GiftCertificateOrderPayment](interfaces/giftcertificateorderpayment.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,36 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [PaypalButtonStyleColorOption](paypalbuttonstylecoloroption.md)
2
+
3
+ # Enumeration: PaypalButtonStyleColorOption
4
+
5
+ ## Index
6
+
7
+ ### Enumeration members
8
+
9
+ * [BLACK](paypalbuttonstylecoloroption.md#black)
10
+ * [BLUE](paypalbuttonstylecoloroption.md#blue)
11
+ * [GOLD](paypalbuttonstylecoloroption.md#gold)
12
+ * [SIlVER](paypalbuttonstylecoloroption.md#silver)
13
+
14
+ ## Enumeration members
15
+
16
+ ### BLACK
17
+
18
+ • **BLACK**: = "black"
19
+
20
+ ___
21
+
22
+ ### BLUE
23
+
24
+ • **BLUE**: = "blue"
25
+
26
+ ___
27
+
28
+ ### GOLD
29
+
30
+ • **GOLD**: = "gold"
31
+
32
+ ___
33
+
34
+ ### SIlVER
35
+
36
+ • **SIlVER**: = "silver"
@@ -0,0 +1,43 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [PaypalButtonStyleLabelOption](paypalbuttonstylelabeloption.md)
2
+
3
+ # Enumeration: PaypalButtonStyleLabelOption
4
+
5
+ ## Index
6
+
7
+ ### Enumeration members
8
+
9
+ * [BUYNOW](paypalbuttonstylelabeloption.md#buynow)
10
+ * [CHECKOUT](paypalbuttonstylelabeloption.md#checkout)
11
+ * [CREDIT](paypalbuttonstylelabeloption.md#credit)
12
+ * [PAY](paypalbuttonstylelabeloption.md#pay)
13
+ * [PAYPAL](paypalbuttonstylelabeloption.md#paypal)
14
+
15
+ ## Enumeration members
16
+
17
+ ### BUYNOW
18
+
19
+ • **BUYNOW**: = "buynow"
20
+
21
+ ___
22
+
23
+ ### CHECKOUT
24
+
25
+ • **CHECKOUT**: = "checkout"
26
+
27
+ ___
28
+
29
+ ### CREDIT
30
+
31
+ • **CREDIT**: = "credit"
32
+
33
+ ___
34
+
35
+ ### PAY
36
+
37
+ • **PAY**: = "pay"
38
+
39
+ ___
40
+
41
+ ### PAYPAL
42
+
43
+ • **PAYPAL**: = "paypal"
@@ -0,0 +1,22 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [PaypalButtonStyleLayoutOption](paypalbuttonstylelayoutoption.md)
2
+
3
+ # Enumeration: PaypalButtonStyleLayoutOption
4
+
5
+ ## Index
6
+
7
+ ### Enumeration members
8
+
9
+ * [HORIZONTAL](paypalbuttonstylelayoutoption.md#horizontal)
10
+ * [VERTICAL](paypalbuttonstylelayoutoption.md#vertical)
11
+
12
+ ## Enumeration members
13
+
14
+ ### HORIZONTAL
15
+
16
+ • **HORIZONTAL**: = "horizontal"
17
+
18
+ ___
19
+
20
+ ### VERTICAL
21
+
22
+ • **VERTICAL**: = "vertical"
@@ -0,0 +1,22 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [PaypalButtonStyleShapeOption](paypalbuttonstyleshapeoption.md)
2
+
3
+ # Enumeration: PaypalButtonStyleShapeOption
4
+
5
+ ## Index
6
+
7
+ ### Enumeration members
8
+
9
+ * [PILL](paypalbuttonstyleshapeoption.md#pill)
10
+ * [RECT](paypalbuttonstyleshapeoption.md#rect)
11
+
12
+ ## Enumeration members
13
+
14
+ ### PILL
15
+
16
+ • **PILL**: = "pill"
17
+
18
+ ___
19
+
20
+ ### RECT
21
+
22
+ • **RECT**: = "rect"
@@ -0,0 +1,36 @@
1
+ [@bigcommerce/checkout-sdk](../README.md) › [PaypalButtonStyleSizeOption](paypalbuttonstylesizeoption.md)
2
+
3
+ # Enumeration: PaypalButtonStyleSizeOption
4
+
5
+ ## Index
6
+
7
+ ### Enumeration members
8
+
9
+ * [LARGE](paypalbuttonstylesizeoption.md#large)
10
+ * [MEDIUM](paypalbuttonstylesizeoption.md#medium)
11
+ * [RESPONSIVE](paypalbuttonstylesizeoption.md#responsive)
12
+ * [SMALL](paypalbuttonstylesizeoption.md#small)
13
+
14
+ ## Enumeration members
15
+
16
+ ### LARGE
17
+
18
+ • **LARGE**: = "large"
19
+
20
+ ___
21
+
22
+ ### MEDIUM
23
+
24
+ • **MEDIUM**: = "medium"
25
+
26
+ ___
27
+
28
+ ### RESPONSIVE
29
+
30
+ • **RESPONSIVE**: = "responsive"
31
+
32
+ ___
33
+
34
+ ### SMALL
35
+
36
+ • **SMALL**: = "small"
@@ -14,6 +14,7 @@
14
14
 
15
15
  * [Error](braintreeerror.md#error)
16
16
  * [code](braintreeerror.md#code)
17
+ * [details](braintreeerror.md#optional-details)
17
18
  * [message](braintreeerror.md#message)
18
19
  * [name](braintreeerror.md#name)
19
20
  * [stack](braintreeerror.md#optional-stack)
@@ -33,11 +34,17 @@ ___
33
34
 
34
35
  ___
35
36
 
37
+ ### `Optional` details
38
+
39
+ • **details**? : *unknown*
40
+
41
+ ___
42
+
36
43
  ### message
37
44
 
38
45
  • **message**: *string*
39
46
 
40
- *Overrides [AmazonPayWidgetError](amazonpaywidgeterror.md).[message](amazonpaywidgeterror.md#message)*
47
+ *Inherited from [AmazonPayWidgetError](amazonpaywidgeterror.md).[message](amazonpaywidgeterror.md#message)*
41
48
 
42
49
  ___
43
50
 
@@ -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*
@@ -1,24 +1,25 @@
1
- [@bigcommerce/checkout-sdk](../README.md) › [BraintreePaypalButtonInitializeOptions](braintreepaypalbuttoninitializeoptions.md)
1
+ [@bigcommerce/checkout-sdk](../README.md) › [BraintreePaypalV1ButtonInitializeOptions](braintreepaypalv1buttoninitializeoptions.md)
2
2
 
3
- # Interface: BraintreePaypalButtonInitializeOptions
3
+ # Interface: BraintreePaypalV1ButtonInitializeOptions
4
4
 
5
5
  ## Hierarchy
6
6
 
7
- * **BraintreePaypalButtonInitializeOptions**
7
+ * **BraintreePaypalV1ButtonInitializeOptions**
8
8
 
9
9
  ## Index
10
10
 
11
11
  ### Properties
12
12
 
13
- * [allowCredit](braintreepaypalbuttoninitializeoptions.md#optional-allowcredit)
14
- * [messagingContainerId](braintreepaypalbuttoninitializeoptions.md#optional-messagingcontainerid)
15
- * [shippingAddress](braintreepaypalbuttoninitializeoptions.md#optional-shippingaddress)
16
- * [style](braintreepaypalbuttoninitializeoptions.md#optional-style)
13
+ * [allowCredit](braintreepaypalv1buttoninitializeoptions.md#optional-allowcredit)
14
+ * [messagingContainerId](braintreepaypalv1buttoninitializeoptions.md#optional-messagingcontainerid)
15
+ * [shippingAddress](braintreepaypalv1buttoninitializeoptions.md#optional-shippingaddress)
16
+ * [style](braintreepaypalv1buttoninitializeoptions.md#optional-style)
17
17
 
18
18
  ### Methods
19
19
 
20
- * [onAuthorizeError](braintreepaypalbuttoninitializeoptions.md#optional-onauthorizeerror)
21
- * [onPaymentError](braintreepaypalbuttoninitializeoptions.md#optional-onpaymenterror)
20
+ * [onAuthorizeError](braintreepaypalv1buttoninitializeoptions.md#optional-onauthorizeerror)
21
+ * [onError](braintreepaypalv1buttoninitializeoptions.md#optional-onerror)
22
+ * [onPaymentError](braintreepaypalv1buttoninitializeoptions.md#optional-onpaymenterror)
22
23
 
23
24
  ## Properties
24
25
 
@@ -71,6 +72,22 @@ Name | Type | Description |
71
72
 
72
73
  ___
73
74
 
75
+ ### `Optional` onError
76
+
77
+ ▸ **onError**(`error`: [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md)): *void*
78
+
79
+ A callback that gets called on any error instead of submit payment or authorization errors.
80
+
81
+ **Parameters:**
82
+
83
+ Name | Type | Description |
84
+ ------ | ------ | ------ |
85
+ `error` | [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md) | The error object describing the failure. |
86
+
87
+ **Returns:** *void*
88
+
89
+ ___
90
+
74
91
  ### `Optional` onPaymentError
75
92
 
76
93
  ▸ **onPaymentError**(`error`: [BraintreeError](braintreeerror.md) | [StandardError](../classes/standarderror.md)): *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)
@@ -58,7 +59,7 @@ ___
58
59
 
59
60
  ### `Optional` braintreepaypal
60
61
 
61
- • **braintreepaypal**? : *[BraintreePaypalButtonInitializeOptions](braintreepaypalbuttoninitializeoptions.md)*
62
+ • **braintreepaypal**? : *[BraintreePaypalV1ButtonInitializeOptions](braintreepaypalv1buttoninitializeoptions.md)*
62
63
 
63
64
  The options that are required to facilitate Braintree PayPal. They can be
64
65
  omitted unless you need to support Braintree PayPal.
@@ -67,7 +68,16 @@ ___
67
68
 
68
69
  ### `Optional` braintreepaypalcredit
69
70
 
70
- • **braintreepaypalcredit**? : *[BraintreePaypalButtonInitializeOptions](braintreepaypalbuttoninitializeoptions.md)*
71
+ • **braintreepaypalcredit**? : *[BraintreePaypalV1ButtonInitializeOptions](braintreepaypalv1buttoninitializeoptions.md)*
72
+
73
+ The options that are required to facilitate Braintree Credit. They can be
74
+ omitted unless you need to support Braintree Credit.
75
+
76
+ ___
77
+
78
+ ### `Optional` braintreepaypalcreditv2
79
+
80
+ • **braintreepaypalcreditv2**? : *[BraintreePaypalCreditButtonInitializeOptions](braintreepaypalcreditbuttoninitializeoptions.md)*
71
81
 
72
82
  The options that are required to facilitate Braintree Credit. They can be
73
83
  omitted unless you need to support Braintree Credit.
@@ -37,7 +37,7 @@ ___
37
37
 
38
38
  ### `Optional` paymentData
39
39
 
40
- • **paymentData**? : *[CreditCardInstrument](creditcardinstrument.md) | [HostedInstrument](hostedinstrument.md) | [HostedCreditCardInstrument](../README.md#hostedcreditcardinstrument) | [HostedVaultedInstrument](../README.md#hostedvaultedinstrument) | [NonceInstrument](nonceinstrument.md) | [VaultedInstrument](vaultedinstrument.md) | [CreditCardInstrument](creditcardinstrument.md) & [WithDocumentInstrument](withdocumentinstrument.md) | [CreditCardInstrument](creditcardinstrument.md) & [WithCheckoutcomFawryInstrument](withcheckoutcomfawryinstrument.md) | [CreditCardInstrument](creditcardinstrument.md) & [WithCheckoutcomSEPAInstrument](withcheckoutcomsepainstrument.md) | [CreditCardInstrument](creditcardinstrument.md) & [WithCheckoutcomiDealInstrument](withcheckoutcomidealinstrument.md) | [HostedInstrument](hostedinstrument.md) & [WithMollieIssuerInstrument](withmollieissuerinstrument.md) | [WithAccountCreation](withaccountcreation.md)*
40
+ • **paymentData**? : *[OrderPaymentInstrument](../README.md#orderpaymentinstrument)*
41
41
 
42
42
  An object that contains the details of a credit card, vaulted payment
43
43
  instrument or nonce instrument.
@@ -23,7 +23,7 @@
23
23
 
24
24
  ### `Optional` color
25
25
 
26
- • **color**? : *"gold" | "blue" | "silver" | "black"*
26
+ • **color**? : *[PaypalButtonStyleColorOption](../enums/paypalbuttonstylecoloroption.md)*
27
27
 
28
28
  ___
29
29
 
@@ -41,25 +41,25 @@ ___
41
41
 
42
42
  ### `Optional` label
43
43
 
44
- • **label**? : *"checkout" | "pay" | "buynow" | "paypal" | "credit"*
44
+ • **label**? : *[PaypalButtonStyleLabelOption](../enums/paypalbuttonstylelabeloption.md)*
45
45
 
46
46
  ___
47
47
 
48
48
  ### `Optional` layout
49
49
 
50
- • **layout**? : *"horizontal" | "vertical"*
50
+ • **layout**? : *[PaypalButtonStyleLayoutOption](../enums/paypalbuttonstylelayoutoption.md)*
51
51
 
52
52
  ___
53
53
 
54
54
  ### `Optional` shape
55
55
 
56
- • **shape**? : *"pill" | "rect"*
56
+ • **shape**? : *[PaypalButtonStyleShapeOption](../enums/paypalbuttonstyleshapeoption.md)*
57
57
 
58
58
  ___
59
59
 
60
60
  ### `Optional` size
61
61
 
62
- • **size**? : *"small" | "medium" | "large" | "responsive"*
62
+ • **size**? : *[PaypalButtonStyleSizeOption](../enums/paypalbuttonstylesizeoption.md)*
63
63
 
64
64
  ___
65
65
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.248.2",
3
+ "version": "1.251.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",