@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/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +0 -122
- 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 +0 -4
- package/docs/interfaces/BasePaymentInitializeOptions.md +0 -20
- package/package.json +1 -1
- package/docs/interfaces/KlarnaLoadResponse.md +0 -28
- package/docs/interfaces/KlarnaLoadResponse_2.md +0 -28
- package/docs/interfaces/KlarnaPaymentInitializeOptions.md +0 -73
- package/docs/interfaces/KlarnaV2PaymentInitializeOptions.md +0 -73
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1203,16 +1203,6 @@ declare interface BasePaymentInitializeOptions extends PaymentRequestOptions {
|
|
|
1203
1203
|
* They can be omitted unless you need to support Digital River.
|
|
1204
1204
|
*/
|
|
1205
1205
|
digitalriver?: DigitalRiverPaymentInitializeOptions;
|
|
1206
|
-
/**
|
|
1207
|
-
* The options that are required to initialize the Klarna payment method.
|
|
1208
|
-
* They can be omitted unless you need to support Klarna.
|
|
1209
|
-
*/
|
|
1210
|
-
klarna?: KlarnaPaymentInitializeOptions;
|
|
1211
|
-
/**
|
|
1212
|
-
* The options that are required to initialize the KlarnaV2 payment method.
|
|
1213
|
-
* They can be omitted unless you need to support KlarnaV2.
|
|
1214
|
-
*/
|
|
1215
|
-
klarnav2?: KlarnaV2PaymentInitializeOptions;
|
|
1216
1206
|
/**
|
|
1217
1207
|
* The options that are required to initialize the Masterpass payment method.
|
|
1218
1208
|
* They can be omitted unless you need to support Masterpass.
|
|
@@ -6414,118 +6404,6 @@ declare interface Item_3 {
|
|
|
6414
6404
|
name?: string;
|
|
6415
6405
|
}
|
|
6416
6406
|
|
|
6417
|
-
declare interface KlarnaLoadResponse {
|
|
6418
|
-
show_form: boolean;
|
|
6419
|
-
error?: {
|
|
6420
|
-
invalid_fields: string[];
|
|
6421
|
-
};
|
|
6422
|
-
}
|
|
6423
|
-
|
|
6424
|
-
declare interface KlarnaLoadResponse_2 {
|
|
6425
|
-
show_form: boolean;
|
|
6426
|
-
error?: {
|
|
6427
|
-
invalid_fields: string[];
|
|
6428
|
-
};
|
|
6429
|
-
}
|
|
6430
|
-
|
|
6431
|
-
/**
|
|
6432
|
-
* A set of options that are required to initialize the Klarna payment method.
|
|
6433
|
-
*
|
|
6434
|
-
* When Klarna is initialized, a widget will be inserted into the DOM. The
|
|
6435
|
-
* widget has a list of payment options for the customer to choose from.
|
|
6436
|
-
*
|
|
6437
|
-
* ```html
|
|
6438
|
-
* <!-- This is where the widget will be inserted -->
|
|
6439
|
-
* <div id="container"></div>
|
|
6440
|
-
* ```
|
|
6441
|
-
*
|
|
6442
|
-
* ```js
|
|
6443
|
-
* service.initializePayment({
|
|
6444
|
-
* methodId: 'klarna',
|
|
6445
|
-
* klarna: {
|
|
6446
|
-
* container: 'container'
|
|
6447
|
-
* },
|
|
6448
|
-
* });
|
|
6449
|
-
* ```
|
|
6450
|
-
*
|
|
6451
|
-
* An additional event callback can be registered.
|
|
6452
|
-
*
|
|
6453
|
-
* ```js
|
|
6454
|
-
* service.initializePayment({
|
|
6455
|
-
* methodId: 'klarnav2',
|
|
6456
|
-
* klarnav2: {
|
|
6457
|
-
* container: 'container',
|
|
6458
|
-
* onLoad(response) {
|
|
6459
|
-
* console.log(response);
|
|
6460
|
-
* },
|
|
6461
|
-
* },
|
|
6462
|
-
* });
|
|
6463
|
-
* ```
|
|
6464
|
-
*/
|
|
6465
|
-
declare interface KlarnaPaymentInitializeOptions {
|
|
6466
|
-
/**
|
|
6467
|
-
* The ID of a container which the payment widget should insert into.
|
|
6468
|
-
*/
|
|
6469
|
-
container: string;
|
|
6470
|
-
/**
|
|
6471
|
-
* A callback that gets called when the widget is loaded and ready to be
|
|
6472
|
-
* interacted with.
|
|
6473
|
-
*
|
|
6474
|
-
* @param response - The result of the initialization. It indicates whether
|
|
6475
|
-
* or not the widget is loaded successfully.
|
|
6476
|
-
*/
|
|
6477
|
-
onLoad?(response: KlarnaLoadResponse): void;
|
|
6478
|
-
}
|
|
6479
|
-
|
|
6480
|
-
/**
|
|
6481
|
-
* A set of options that are required to initialize the KlarnaV2 payment method.
|
|
6482
|
-
*
|
|
6483
|
-
* When KlarnaV2 is initialized, a list of payment options will be displayed for the customer to choose from.
|
|
6484
|
-
* Each one with its own widget.
|
|
6485
|
-
*
|
|
6486
|
-
* ```html
|
|
6487
|
-
* <!-- This is where the widget will be inserted -->
|
|
6488
|
-
* <div id="container"></div>
|
|
6489
|
-
* ```
|
|
6490
|
-
*
|
|
6491
|
-
* ```js
|
|
6492
|
-
* service.initializePayment({
|
|
6493
|
-
* methodId: 'klarnav2',
|
|
6494
|
-
* klarnav2: {
|
|
6495
|
-
* container: 'container'
|
|
6496
|
-
* },
|
|
6497
|
-
* });
|
|
6498
|
-
* ```
|
|
6499
|
-
*
|
|
6500
|
-
* An additional event callback can be registered.
|
|
6501
|
-
*
|
|
6502
|
-
* ```js
|
|
6503
|
-
* service.initializePayment({
|
|
6504
|
-
* methodId: 'klarnav2',
|
|
6505
|
-
* klarnav2: {
|
|
6506
|
-
* container: 'container',
|
|
6507
|
-
* onLoad(response) {
|
|
6508
|
-
* console.log(response);
|
|
6509
|
-
* },
|
|
6510
|
-
* },
|
|
6511
|
-
* });
|
|
6512
|
-
* ```
|
|
6513
|
-
*/
|
|
6514
|
-
declare interface KlarnaV2PaymentInitializeOptions {
|
|
6515
|
-
/**
|
|
6516
|
-
* The ID of a container which the payment widget should insert into.
|
|
6517
|
-
*/
|
|
6518
|
-
container: string;
|
|
6519
|
-
/**
|
|
6520
|
-
* A callback that gets called when the widget is loaded and ready to be
|
|
6521
|
-
* interacted with.
|
|
6522
|
-
*
|
|
6523
|
-
* @param response - The result of the initialization. It indicates whether
|
|
6524
|
-
* or not the widget is loaded successfully.
|
|
6525
|
-
*/
|
|
6526
|
-
onLoad?(response: KlarnaLoadResponse_2): void;
|
|
6527
|
-
}
|
|
6528
|
-
|
|
6529
6407
|
declare interface LabelStyles extends InlineElementStyles {
|
|
6530
6408
|
error?: InlineElementStyles;
|
|
6531
6409
|
}
|