@bigcommerce/checkout-sdk 1.305.0 → 1.306.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/CHANGELOG.md +14 -0
- package/dist/checkout-button.d.ts +4 -19
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.js.map +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-button.umd.js.map +1 -1
- package/dist/checkout-sdk.d.ts +4 -19
- 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/interfaces/PaypalCommerceInlineCheckoutButtonInitializeOptions.md +13 -34
- package/package.json +1 -1
|
@@ -6,29 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
### Properties
|
|
8
8
|
|
|
9
|
-
- [acceleratedCheckoutContainerDataId](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#acceleratedcheckoutcontainerdataid)
|
|
10
9
|
- [buttonContainerClassName](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#buttoncontainerclassname)
|
|
11
|
-
- [buttonContainerDataId](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#buttoncontainerdataid)
|
|
12
|
-
- [nativeCheckoutButtonDataId](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#nativecheckoutbuttondataid)
|
|
13
10
|
- [style](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#style)
|
|
14
11
|
|
|
15
12
|
### Methods
|
|
16
13
|
|
|
17
14
|
- [onComplete](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#oncomplete)
|
|
15
|
+
- [onError](PaypalCommerceInlineCheckoutButtonInitializeOptions.md#onerror)
|
|
18
16
|
|
|
19
17
|
## Properties
|
|
20
18
|
|
|
21
|
-
### acceleratedCheckoutContainerDataId
|
|
22
|
-
|
|
23
|
-
• **acceleratedCheckoutContainerDataId**: `string`
|
|
24
|
-
|
|
25
|
-
Accelerated Checkout Buttons container - is a generic container for all AC buttons
|
|
26
|
-
Used as a container where the button will be rendered with its own container
|
|
27
|
-
Example: 'data-cart-accelerated-checkout-buttons'
|
|
28
|
-
Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
29
|
-
|
|
30
|
-
___
|
|
31
|
-
|
|
32
19
|
### buttonContainerClassName
|
|
33
20
|
|
|
34
21
|
• `Optional` **buttonContainerClassName**: `string`
|
|
@@ -38,26 +25,6 @@ Default: 'PaypalCommerceInlineButton'
|
|
|
38
25
|
|
|
39
26
|
___
|
|
40
27
|
|
|
41
|
-
### buttonContainerDataId
|
|
42
|
-
|
|
43
|
-
• **buttonContainerDataId**: `string`
|
|
44
|
-
|
|
45
|
-
A container identifier what used to add special class for container where the button will be generated in
|
|
46
|
-
Example: 'data-paypal-commerce-inline-button'
|
|
47
|
-
Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
48
|
-
|
|
49
|
-
___
|
|
50
|
-
|
|
51
|
-
### nativeCheckoutButtonDataId
|
|
52
|
-
|
|
53
|
-
• **nativeCheckoutButtonDataId**: `string`
|
|
54
|
-
|
|
55
|
-
Used by Accelerated Checkout strategy to hide native action button before rendering PayPal inline checkout button
|
|
56
|
-
Example: 'data-checkout-now-button'
|
|
57
|
-
Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
58
|
-
|
|
59
|
-
___
|
|
60
|
-
|
|
61
28
|
### style
|
|
62
29
|
|
|
63
30
|
• `Optional` **style**: [`PaypalButtonStyleOptions_2`](PaypalButtonStyleOptions_2.md)
|
|
@@ -75,3 +42,15 @@ A callback that gets called when payment complete on paypal side.
|
|
|
75
42
|
#### Returns
|
|
76
43
|
|
|
77
44
|
`void`
|
|
45
|
+
|
|
46
|
+
___
|
|
47
|
+
|
|
48
|
+
### onError
|
|
49
|
+
|
|
50
|
+
▸ `Optional` **onError**(): `void`
|
|
51
|
+
|
|
52
|
+
A callback that gets called on any error
|
|
53
|
+
|
|
54
|
+
#### Returns
|
|
55
|
+
|
|
56
|
+
`void`
|