@bigcommerce/checkout-sdk 1.323.0 → 1.324.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 +9 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +18 -27
- 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/BaseCustomerInitializeOptions.md +10 -10
- package/docs/interfaces/BraintreePaypalCustomerInitializeOptions.md +39 -0
- package/package.json +1 -1
- package/docs/interfaces/PaypalCommerceCustomerInitializeOptions.md +0 -56
package/docs/README.md
CHANGED
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
- [BraintreePaymentInitializeOptions](interfaces/BraintreePaymentInitializeOptions.md)
|
|
125
125
|
- [BraintreePaypalButtonInitializeOptions](interfaces/BraintreePaypalButtonInitializeOptions.md)
|
|
126
126
|
- [BraintreePaypalCreditButtonInitializeOptions](interfaces/BraintreePaypalCreditButtonInitializeOptions.md)
|
|
127
|
+
- [BraintreePaypalCustomerInitializeOptions](interfaces/BraintreePaypalCustomerInitializeOptions.md)
|
|
127
128
|
- [BraintreeStoredCardFieldOptions](interfaces/BraintreeStoredCardFieldOptions.md)
|
|
128
129
|
- [BraintreeStoredCardFieldsMap](interfaces/BraintreeStoredCardFieldsMap.md)
|
|
129
130
|
- [BraintreeThreeDSecureOptions](interfaces/BraintreeThreeDSecureOptions.md)
|
|
@@ -294,7 +295,6 @@
|
|
|
294
295
|
- [PaypalCommerceButtonInitializeOptions](interfaces/PaypalCommerceButtonInitializeOptions.md)
|
|
295
296
|
- [PaypalCommerceCreditButtonInitializeOptions](interfaces/PaypalCommerceCreditButtonInitializeOptions.md)
|
|
296
297
|
- [PaypalCommerceCreditCardPaymentInitializeOptions](interfaces/PaypalCommerceCreditCardPaymentInitializeOptions.md)
|
|
297
|
-
- [PaypalCommerceCustomerInitializeOptions](interfaces/PaypalCommerceCustomerInitializeOptions.md)
|
|
298
298
|
- [PaypalCommerceFormFieldCardTypeChangeEventData](interfaces/PaypalCommerceFormFieldCardTypeChangeEventData.md)
|
|
299
299
|
- [PaypalCommerceFormFieldKeyboardEventData](interfaces/PaypalCommerceFormFieldKeyboardEventData.md)
|
|
300
300
|
- [PaypalCommerceFormFieldOptions](interfaces/PaypalCommerceFormFieldOptions.md)
|
|
@@ -27,6 +27,7 @@ information in order to initialize the customer step of checkout.
|
|
|
27
27
|
- [amazon](BaseCustomerInitializeOptions.md#amazon)
|
|
28
28
|
- [amazonpay](BaseCustomerInitializeOptions.md#amazonpay)
|
|
29
29
|
- [bolt](BaseCustomerInitializeOptions.md#bolt)
|
|
30
|
+
- [braintreepaypal](BaseCustomerInitializeOptions.md#braintreepaypal)
|
|
30
31
|
- [braintreevisacheckout](BaseCustomerInitializeOptions.md#braintreevisacheckout)
|
|
31
32
|
- [chasepay](BaseCustomerInitializeOptions.md#chasepay)
|
|
32
33
|
- [googlepayadyenv2](BaseCustomerInitializeOptions.md#googlepayadyenv2)
|
|
@@ -42,7 +43,6 @@ information in order to initialize the customer step of checkout.
|
|
|
42
43
|
- [masterpass](BaseCustomerInitializeOptions.md#masterpass)
|
|
43
44
|
- [methodId](BaseCustomerInitializeOptions.md#methodid)
|
|
44
45
|
- [params](BaseCustomerInitializeOptions.md#params)
|
|
45
|
-
- [paypalcommerce](BaseCustomerInitializeOptions.md#paypalcommerce)
|
|
46
46
|
- [stripeupe](BaseCustomerInitializeOptions.md#stripeupe)
|
|
47
47
|
- [timeout](BaseCustomerInitializeOptions.md#timeout)
|
|
48
48
|
|
|
@@ -75,6 +75,15 @@ when using Bolt.
|
|
|
75
75
|
|
|
76
76
|
___
|
|
77
77
|
|
|
78
|
+
### braintreepaypal
|
|
79
|
+
|
|
80
|
+
• `Optional` **braintreepaypal**: [`BraintreePaypalCustomerInitializeOptions`](BraintreePaypalCustomerInitializeOptions.md)
|
|
81
|
+
|
|
82
|
+
The options that are required to initialize the customer step of checkout
|
|
83
|
+
when using Braintree PayPal provided.
|
|
84
|
+
|
|
85
|
+
___
|
|
86
|
+
|
|
78
87
|
### braintreevisacheckout
|
|
79
88
|
|
|
80
89
|
• `Optional` **braintreevisacheckout**: [`BraintreeVisaCheckoutCustomerInitializeOptions`](BraintreeVisaCheckoutCustomerInitializeOptions.md)
|
|
@@ -214,15 +223,6 @@ The parameters of the request, if required.
|
|
|
214
223
|
|
|
215
224
|
___
|
|
216
225
|
|
|
217
|
-
### paypalcommerce
|
|
218
|
-
|
|
219
|
-
• `Optional` **paypalcommerce**: [`PaypalCommerceCustomerInitializeOptions`](PaypalCommerceCustomerInitializeOptions.md)
|
|
220
|
-
|
|
221
|
-
The options that are required to initialize the PayPalCommerce payment method.
|
|
222
|
-
They can be omitted unless you need to support PayPalCommerce.
|
|
223
|
-
|
|
224
|
-
___
|
|
225
|
-
|
|
226
226
|
### stripeupe
|
|
227
227
|
|
|
228
228
|
• `Optional` **stripeupe**: [`StripeUPECustomerInitializeOptions`](StripeUPECustomerInitializeOptions.md)
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / BraintreePaypalCustomerInitializeOptions
|
|
2
|
+
|
|
3
|
+
# Interface: BraintreePaypalCustomerInitializeOptions
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [container](BraintreePaypalCustomerInitializeOptions.md#container)
|
|
10
|
+
|
|
11
|
+
### Methods
|
|
12
|
+
|
|
13
|
+
- [onError](BraintreePaypalCustomerInitializeOptions.md#onerror)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### container
|
|
18
|
+
|
|
19
|
+
• **container**: `string`
|
|
20
|
+
|
|
21
|
+
The ID of a container which the checkout button should be inserted into.
|
|
22
|
+
|
|
23
|
+
## Methods
|
|
24
|
+
|
|
25
|
+
### onError
|
|
26
|
+
|
|
27
|
+
▸ `Optional` **onError**(`error`): `void`
|
|
28
|
+
|
|
29
|
+
A callback that gets called on any error instead of submit payment or authorization errors.
|
|
30
|
+
|
|
31
|
+
#### Parameters
|
|
32
|
+
|
|
33
|
+
| Name | Type | Description |
|
|
34
|
+
| :------ | :------ | :------ |
|
|
35
|
+
| `error` | [`StandardError`](../classes/StandardError.md) \| [`BraintreeError`](BraintreeError.md) | The error object describing the failure. |
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
`void`
|
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
[@bigcommerce/checkout-sdk](../README.md) / PaypalCommerceCustomerInitializeOptions
|
|
2
|
-
|
|
3
|
-
# Interface: PaypalCommerceCustomerInitializeOptions
|
|
4
|
-
|
|
5
|
-
A set of options that are required to initialize the customer step of
|
|
6
|
-
checkout to support PayPalCommerce.
|
|
7
|
-
|
|
8
|
-
## Table of contents
|
|
9
|
-
|
|
10
|
-
### Properties
|
|
11
|
-
|
|
12
|
-
- [container](PaypalCommerceCustomerInitializeOptions.md#container)
|
|
13
|
-
|
|
14
|
-
### Methods
|
|
15
|
-
|
|
16
|
-
- [onComplete](PaypalCommerceCustomerInitializeOptions.md#oncomplete)
|
|
17
|
-
- [onError](PaypalCommerceCustomerInitializeOptions.md#onerror)
|
|
18
|
-
|
|
19
|
-
## Properties
|
|
20
|
-
|
|
21
|
-
### container
|
|
22
|
-
|
|
23
|
-
• **container**: `string`
|
|
24
|
-
|
|
25
|
-
The ID of a container which the checkout button should be inserted into.
|
|
26
|
-
|
|
27
|
-
## Methods
|
|
28
|
-
|
|
29
|
-
### onComplete
|
|
30
|
-
|
|
31
|
-
▸ `Optional` **onComplete**(): `void`
|
|
32
|
-
|
|
33
|
-
A callback that gets called when payment complete on paypal side.
|
|
34
|
-
|
|
35
|
-
#### Returns
|
|
36
|
-
|
|
37
|
-
`void`
|
|
38
|
-
|
|
39
|
-
___
|
|
40
|
-
|
|
41
|
-
### onError
|
|
42
|
-
|
|
43
|
-
▸ `Optional` **onError**(`error?`): `void`
|
|
44
|
-
|
|
45
|
-
A callback that gets called if unable to initialize the widget or select
|
|
46
|
-
one of the address options provided by the widget.
|
|
47
|
-
|
|
48
|
-
#### Parameters
|
|
49
|
-
|
|
50
|
-
| Name | Type | Description |
|
|
51
|
-
| :------ | :------ | :------ |
|
|
52
|
-
| `error?` | `Error` | The error object describing the failure. |
|
|
53
|
-
|
|
54
|
-
#### Returns
|
|
55
|
-
|
|
56
|
-
`void`
|