@bigcommerce/checkout-sdk 1.248.1 → 1.250.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,7 @@
101
106
  * [BraintreeFormFieldsMap](interfaces/braintreeformfieldsmap.md)
102
107
  * [BraintreeFormOptions](interfaces/braintreeformoptions.md)
103
108
  * [BraintreePaymentInitializeOptions](interfaces/braintreepaymentinitializeoptions.md)
104
- * [BraintreePaypalButtonInitializeOptions](interfaces/braintreepaypalbuttoninitializeoptions.md)
109
+ * [BraintreePaypalV1ButtonInitializeOptions](interfaces/braintreepaypalv1buttoninitializeoptions.md)
105
110
  * [BraintreeStoredCardFieldOptions](interfaces/braintreestoredcardfieldoptions.md)
106
111
  * [BraintreeStoredCardFieldsMap](interfaces/braintreestoredcardfieldsmap.md)
107
112
  * [BraintreeThreeDSecureOptions](interfaces/braintreethreedsecureoptions.md)
@@ -373,6 +378,7 @@
373
378
  * [HostedVaultedInstrument](README.md#hostedvaultedinstrument)
374
379
  * [Instrument](README.md#instrument)
375
380
  * [Omit](README.md#omit)
381
+ * [OrderPaymentInstrument](README.md#orderpaymentinstrument)
376
382
  * [OrderPayments](README.md#orderpayments)
377
383
  * [PaymentInstrument](README.md#paymentinstrument)
378
384
  * [PaypalCommerceFormFieldBlurEventData](README.md#paypalcommerceformfieldblureventdata)
@@ -584,6 +590,12 @@ ___
584
590
 
585
591
  ___
586
592
 
593
+ ### OrderPaymentInstrument
594
+
595
+ Ƭ **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)*
596
+
597
+ ___
598
+
587
599
  ### OrderPayments
588
600
 
589
601
  Ƭ **OrderPayments**: *Array‹[GatewayOrderPayment](interfaces/gatewayorderpayment.md) | [GiftCertificateOrderPayment](interfaces/giftcertificateorderpayment.md)›*
@@ -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
 
@@ -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*
@@ -58,7 +58,7 @@ ___
58
58
 
59
59
  ### `Optional` braintreepaypal
60
60
 
61
- • **braintreepaypal**? : *[BraintreePaypalButtonInitializeOptions](braintreepaypalbuttoninitializeoptions.md)*
61
+ • **braintreepaypal**? : *[BraintreePaypalV1ButtonInitializeOptions](braintreepaypalv1buttoninitializeoptions.md)*
62
62
 
63
63
  The options that are required to facilitate Braintree PayPal. They can be
64
64
  omitted unless you need to support Braintree PayPal.
@@ -67,7 +67,7 @@ ___
67
67
 
68
68
  ### `Optional` braintreepaypalcredit
69
69
 
70
- • **braintreepaypalcredit**? : *[BraintreePaypalButtonInitializeOptions](braintreepaypalbuttoninitializeoptions.md)*
70
+ • **braintreepaypalcredit**? : *[BraintreePaypalV1ButtonInitializeOptions](braintreepaypalv1buttoninitializeoptions.md)*
71
71
 
72
72
  The options that are required to facilitate Braintree Credit. They can be
73
73
  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.1",
3
+ "version": "1.250.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",