@bigcommerce/checkout-sdk 1.459.0 → 1.460.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/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +59 -14
- package/dist/checkout-sdk.js +1 -1
- package/dist/checkout-sdk.js.map +1 -1
- package/dist/checkout-sdk.umd.js +1 -1
- package/dist/checkout-sdk.umd.js.map +1 -1
- package/docs/README.md +1 -1
- package/docs/interfaces/BraintreeAcceleratedCheckoutPaymentInitializeOptions.md +46 -2
- package/docs/interfaces/BraintreeAcceleratedCheckoutShippingInitializeOptions.md +33 -0
- package/docs/interfaces/ShippingInitializeOptions.md +1 -1
- package/package.json +1 -1
- package/docs/interfaces/BraintreeAcceleratedCheckoutInitializeOptions.md +0 -20
package/docs/README.md
CHANGED
|
@@ -121,8 +121,8 @@
|
|
|
121
121
|
- [BoltCustomerInitializeOptions](interfaces/BoltCustomerInitializeOptions.md)
|
|
122
122
|
- [BoltPaymentInitializeOptions](interfaces/BoltPaymentInitializeOptions.md)
|
|
123
123
|
- [BraintreeAcceleratedCheckoutCustomer](interfaces/BraintreeAcceleratedCheckoutCustomer.md)
|
|
124
|
-
- [BraintreeAcceleratedCheckoutInitializeOptions](interfaces/BraintreeAcceleratedCheckoutInitializeOptions.md)
|
|
125
124
|
- [BraintreeAcceleratedCheckoutPaymentInitializeOptions](interfaces/BraintreeAcceleratedCheckoutPaymentInitializeOptions.md)
|
|
125
|
+
- [BraintreeAcceleratedCheckoutShippingInitializeOptions](interfaces/BraintreeAcceleratedCheckoutShippingInitializeOptions.md)
|
|
126
126
|
- [BraintreeError](interfaces/BraintreeError.md)
|
|
127
127
|
- [BraintreeFormFieldCardTypeChangeEventData](interfaces/BraintreeFormFieldCardTypeChangeEventData.md)
|
|
128
128
|
- [BraintreeFormFieldKeyboardEventData](interfaces/BraintreeFormFieldKeyboardEventData.md)
|
|
@@ -15,24 +15,68 @@ Also, Braintree requires specific options to initialize Braintree Accelerated Ch
|
|
|
15
15
|
service.initializePayment({
|
|
16
16
|
methodId: 'braintreeacceleratedcheckout',
|
|
17
17
|
braintreeacceleratedcheckout: {
|
|
18
|
-
onInit: (renderPayPalComponentMethod) => renderPayPalComponentMethod('#container-id')
|
|
18
|
+
onInit: (renderPayPalComponentMethod) => renderPayPalComponentMethod('#container-id'),
|
|
19
|
+
styles: {
|
|
20
|
+
root: {
|
|
21
|
+
backgroundColorPrimary: 'transparent',
|
|
22
|
+
errorColor: '#C40B0B',
|
|
23
|
+
fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
24
|
+
},
|
|
25
|
+
input: {
|
|
26
|
+
borderRadius: '0.25rem',
|
|
27
|
+
borderColor: '#9E9E9E',
|
|
28
|
+
focusBorderColor: '#4496F6',
|
|
29
|
+
},
|
|
30
|
+
toggle: {
|
|
31
|
+
colorPrimary: '#0F005E',
|
|
32
|
+
colorSecondary: '#ffffff',
|
|
33
|
+
},
|
|
34
|
+
text: {
|
|
35
|
+
body: {
|
|
36
|
+
color: '#222222',
|
|
37
|
+
fontSize: '1rem',
|
|
38
|
+
},
|
|
39
|
+
caption: {
|
|
40
|
+
color: '#515151',
|
|
41
|
+
fontSize: '0.875rem',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
branding: 'light',
|
|
45
|
+
},
|
|
19
46
|
},
|
|
20
47
|
});
|
|
21
48
|
```
|
|
22
49
|
|
|
23
50
|
## Table of contents
|
|
24
51
|
|
|
52
|
+
### Properties
|
|
53
|
+
|
|
54
|
+
- [styles](BraintreeAcceleratedCheckoutPaymentInitializeOptions.md#styles)
|
|
55
|
+
|
|
25
56
|
### Methods
|
|
26
57
|
|
|
27
58
|
- [onInit](BraintreeAcceleratedCheckoutPaymentInitializeOptions.md#oninit)
|
|
28
59
|
|
|
60
|
+
## Properties
|
|
61
|
+
|
|
62
|
+
### styles
|
|
63
|
+
|
|
64
|
+
• `Optional` **styles**: `BraintreeConnectStylesOption`
|
|
65
|
+
|
|
66
|
+
Is a stylisation options for customizing PayPal Connect components
|
|
67
|
+
|
|
68
|
+
Note: the styles for all Braintree Accelerated Checkout strategies should be the same,
|
|
69
|
+
because they will be provided to PayPal library only for the first strategy initialization
|
|
70
|
+
no matter what strategy was initialised first
|
|
71
|
+
|
|
29
72
|
## Methods
|
|
30
73
|
|
|
31
74
|
### onInit
|
|
32
75
|
|
|
33
76
|
▸ `Optional` **onInit**(`renderPayPalComponentMethod`): `void`
|
|
34
77
|
|
|
35
|
-
|
|
78
|
+
Is a callback that takes the CSS selector of a container
|
|
79
|
+
where the PayPal Connect form should be inserted into.
|
|
36
80
|
|
|
37
81
|
#### Parameters
|
|
38
82
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / BraintreeAcceleratedCheckoutShippingInitializeOptions
|
|
2
|
+
|
|
3
|
+
# Interface: BraintreeAcceleratedCheckoutShippingInitializeOptions
|
|
4
|
+
|
|
5
|
+
A set of options that are required to initialize the shipping step of
|
|
6
|
+
checkout in order to support Braintree Accelerated Checkout.
|
|
7
|
+
|
|
8
|
+
## Table of contents
|
|
9
|
+
|
|
10
|
+
### Properties
|
|
11
|
+
|
|
12
|
+
- [methodId](BraintreeAcceleratedCheckoutShippingInitializeOptions.md#methodid)
|
|
13
|
+
- [styles](BraintreeAcceleratedCheckoutShippingInitializeOptions.md#styles)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### methodId
|
|
18
|
+
|
|
19
|
+
• **methodId**: `string`
|
|
20
|
+
|
|
21
|
+
The identifier of the payment method.
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### styles
|
|
26
|
+
|
|
27
|
+
• `Optional` **styles**: `BraintreeConnectStylesOption`
|
|
28
|
+
|
|
29
|
+
Is a stylisation options for customizing PayPal Connect components
|
|
30
|
+
|
|
31
|
+
Note: the styles for all Braintree Accelerated Checkout strategies should be the same,
|
|
32
|
+
because they will be provided to PayPal library only for the first strategy initialization
|
|
33
|
+
no matter what strategy was initialised first
|
|
@@ -47,7 +47,7 @@ ___
|
|
|
47
47
|
|
|
48
48
|
### braintreeacceleratedcheckout
|
|
49
49
|
|
|
50
|
-
• `Optional` **braintreeacceleratedcheckout**: [`
|
|
50
|
+
• `Optional` **braintreeacceleratedcheckout**: [`BraintreeAcceleratedCheckoutShippingInitializeOptions`](BraintreeAcceleratedCheckoutShippingInitializeOptions.md)
|
|
51
51
|
|
|
52
52
|
The options that are required to initialize the shipping step of checkout
|
|
53
53
|
when using Braintree Accelerated Checkout.
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
[@bigcommerce/checkout-sdk](../README.md) / BraintreeAcceleratedCheckoutInitializeOptions
|
|
2
|
-
|
|
3
|
-
# Interface: BraintreeAcceleratedCheckoutInitializeOptions
|
|
4
|
-
|
|
5
|
-
A set of options that are required to initialize the shipping step of
|
|
6
|
-
checkout in order to support Braintree Accelerated Checkout.
|
|
7
|
-
|
|
8
|
-
## Table of contents
|
|
9
|
-
|
|
10
|
-
### Properties
|
|
11
|
-
|
|
12
|
-
- [methodId](BraintreeAcceleratedCheckoutInitializeOptions.md#methodid)
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
### methodId
|
|
17
|
-
|
|
18
|
-
• **methodId**: `string`
|
|
19
|
-
|
|
20
|
-
The identifier of the payment method.
|