@bigcommerce/checkout-sdk 1.567.0 → 1.568.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
@@ -334,10 +334,6 @@
334
334
  - [Item](interfaces/Item.md)
335
335
  - [Item_2](interfaces/Item_2.md)
336
336
  - [Item_3](interfaces/Item_3.md)
337
- - [KlarnaLoadResponse](interfaces/KlarnaLoadResponse.md)
338
- - [KlarnaLoadResponse_2](interfaces/KlarnaLoadResponse_2.md)
339
- - [KlarnaPaymentInitializeOptions](interfaces/KlarnaPaymentInitializeOptions.md)
340
- - [KlarnaV2PaymentInitializeOptions](interfaces/KlarnaV2PaymentInitializeOptions.md)
341
337
  - [LabelStyles](interfaces/LabelStyles.md)
342
338
  - [LanguageConfig](interfaces/LanguageConfig.md)
343
339
  - [LineItem](interfaces/LineItem.md)
@@ -34,8 +34,6 @@ current checkout flow.
34
34
  - [googlepaystripe](BasePaymentInitializeOptions.md#googlepaystripe)
35
35
  - [googlepaystripeupe](BasePaymentInitializeOptions.md#googlepaystripeupe)
36
36
  - [googlepayworldpayaccess](BasePaymentInitializeOptions.md#googlepayworldpayaccess)
37
- - [klarna](BasePaymentInitializeOptions.md#klarna)
38
- - [klarnav2](BasePaymentInitializeOptions.md#klarnav2)
39
37
  - [masterpass](BasePaymentInitializeOptions.md#masterpass)
40
38
  - [methodId](BasePaymentInitializeOptions.md#methodid)
41
39
  - [moneris](BasePaymentInitializeOptions.md#moneris)
@@ -227,24 +225,6 @@ They can be omitted unless you need to support GooglePay.
227
225
 
228
226
  ___
229
227
 
230
- ### klarna
231
-
232
- • `Optional` **klarna**: [`KlarnaPaymentInitializeOptions`](KlarnaPaymentInitializeOptions.md)
233
-
234
- The options that are required to initialize the Klarna payment method.
235
- They can be omitted unless you need to support Klarna.
236
-
237
- ___
238
-
239
- ### klarnav2
240
-
241
- • `Optional` **klarnav2**: [`KlarnaV2PaymentInitializeOptions`](KlarnaV2PaymentInitializeOptions.md)
242
-
243
- The options that are required to initialize the KlarnaV2 payment method.
244
- They can be omitted unless you need to support KlarnaV2.
245
-
246
- ___
247
-
248
228
  ### masterpass
249
229
 
250
230
  • `Optional` **masterpass**: [`MasterpassPaymentInitializeOptions`](MasterpassPaymentInitializeOptions.md)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigcommerce/checkout-sdk",
3
- "version": "1.567.0",
3
+ "version": "1.568.0",
4
4
  "description": "BigCommerce Checkout JavaScript SDK",
5
5
  "license": "MIT",
6
6
  "main": "dist/checkout-sdk.js",
@@ -1,28 +0,0 @@
1
- [@bigcommerce/checkout-sdk](../README.md) / KlarnaLoadResponse
2
-
3
- # Interface: KlarnaLoadResponse
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [error](KlarnaLoadResponse.md#error)
10
- - [show_form](KlarnaLoadResponse.md#show_form)
11
-
12
- ## Properties
13
-
14
- ### error
15
-
16
- • `Optional` **error**: `Object`
17
-
18
- #### Type declaration
19
-
20
- | Name | Type |
21
- | :------ | :------ |
22
- | `invalid_fields` | `string`[] |
23
-
24
- ___
25
-
26
- ### show\_form
27
-
28
- • **show\_form**: `boolean`
@@ -1,28 +0,0 @@
1
- [@bigcommerce/checkout-sdk](../README.md) / KlarnaLoadResponse_2
2
-
3
- # Interface: KlarnaLoadResponse\_2
4
-
5
- ## Table of contents
6
-
7
- ### Properties
8
-
9
- - [error](KlarnaLoadResponse_2.md#error)
10
- - [show_form](KlarnaLoadResponse_2.md#show_form)
11
-
12
- ## Properties
13
-
14
- ### error
15
-
16
- • `Optional` **error**: `Object`
17
-
18
- #### Type declaration
19
-
20
- | Name | Type |
21
- | :------ | :------ |
22
- | `invalid_fields` | `string`[] |
23
-
24
- ___
25
-
26
- ### show\_form
27
-
28
- • **show\_form**: `boolean`
@@ -1,73 +0,0 @@
1
- [@bigcommerce/checkout-sdk](../README.md) / KlarnaPaymentInitializeOptions
2
-
3
- # Interface: KlarnaPaymentInitializeOptions
4
-
5
- A set of options that are required to initialize the Klarna payment method.
6
-
7
- When Klarna is initialized, a widget will be inserted into the DOM. The
8
- widget has a list of payment options for the customer to choose from.
9
-
10
- ```html
11
- <!-- This is where the widget will be inserted -->
12
- <div id="container"></div>
13
- ```
14
-
15
- ```js
16
- service.initializePayment({
17
- methodId: 'klarna',
18
- klarna: {
19
- container: 'container'
20
- },
21
- });
22
- ```
23
-
24
- An additional event callback can be registered.
25
-
26
- ```js
27
- service.initializePayment({
28
- methodId: 'klarnav2',
29
- klarnav2: {
30
- container: 'container',
31
- onLoad(response) {
32
- console.log(response);
33
- },
34
- },
35
- });
36
- ```
37
-
38
- ## Table of contents
39
-
40
- ### Properties
41
-
42
- - [container](KlarnaPaymentInitializeOptions.md#container)
43
-
44
- ### Methods
45
-
46
- - [onLoad](KlarnaPaymentInitializeOptions.md#onload)
47
-
48
- ## Properties
49
-
50
- ### container
51
-
52
- • **container**: `string`
53
-
54
- The ID of a container which the payment widget should insert into.
55
-
56
- ## Methods
57
-
58
- ### onLoad
59
-
60
- ▸ `Optional` **onLoad**(`response`): `void`
61
-
62
- A callback that gets called when the widget is loaded and ready to be
63
- interacted with.
64
-
65
- #### Parameters
66
-
67
- | Name | Type | Description |
68
- | :------ | :------ | :------ |
69
- | `response` | [`KlarnaLoadResponse`](KlarnaLoadResponse.md) | The result of the initialization. It indicates whether or not the widget is loaded successfully. |
70
-
71
- #### Returns
72
-
73
- `void`
@@ -1,73 +0,0 @@
1
- [@bigcommerce/checkout-sdk](../README.md) / KlarnaV2PaymentInitializeOptions
2
-
3
- # Interface: KlarnaV2PaymentInitializeOptions
4
-
5
- A set of options that are required to initialize the KlarnaV2 payment method.
6
-
7
- When KlarnaV2 is initialized, a list of payment options will be displayed for the customer to choose from.
8
- Each one with its own widget.
9
-
10
- ```html
11
- <!-- This is where the widget will be inserted -->
12
- <div id="container"></div>
13
- ```
14
-
15
- ```js
16
- service.initializePayment({
17
- methodId: 'klarnav2',
18
- klarnav2: {
19
- container: 'container'
20
- },
21
- });
22
- ```
23
-
24
- An additional event callback can be registered.
25
-
26
- ```js
27
- service.initializePayment({
28
- methodId: 'klarnav2',
29
- klarnav2: {
30
- container: 'container',
31
- onLoad(response) {
32
- console.log(response);
33
- },
34
- },
35
- });
36
- ```
37
-
38
- ## Table of contents
39
-
40
- ### Properties
41
-
42
- - [container](KlarnaV2PaymentInitializeOptions.md#container)
43
-
44
- ### Methods
45
-
46
- - [onLoad](KlarnaV2PaymentInitializeOptions.md#onload)
47
-
48
- ## Properties
49
-
50
- ### container
51
-
52
- • **container**: `string`
53
-
54
- The ID of a container which the payment widget should insert into.
55
-
56
- ## Methods
57
-
58
- ### onLoad
59
-
60
- ▸ `Optional` **onLoad**(`response`): `void`
61
-
62
- A callback that gets called when the widget is loaded and ready to be
63
- interacted with.
64
-
65
- #### Parameters
66
-
67
- | Name | Type | Description |
68
- | :------ | :------ | :------ |
69
- | `response` | [`KlarnaLoadResponse_2`](KlarnaLoadResponse_2.md) | The result of the initialization. It indicates whether or not the widget is loaded successfully. |
70
-
71
- #### Returns
72
-
73
- `void`