@bigcommerce/checkout-sdk 1.305.0 → 1.305.1
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 +7 -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
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -6424,30 +6424,11 @@ declare interface PaypalCommerceFormOptions {
|
|
|
6424
6424
|
declare type PaypalCommerceInitializeOptions = PaypalCommercePaymentInitializeOptions | PaypalCommerceCreditCardPaymentInitializeOptions;
|
|
6425
6425
|
|
|
6426
6426
|
declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
|
|
6427
|
-
/**
|
|
6428
|
-
* Accelerated Checkout Buttons container - is a generic container for all AC buttons
|
|
6429
|
-
* Used as a container where the button will be rendered with its own container
|
|
6430
|
-
* Example: 'data-cart-accelerated-checkout-buttons'
|
|
6431
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6432
|
-
*/
|
|
6433
|
-
acceleratedCheckoutContainerDataId: string;
|
|
6434
|
-
/**
|
|
6435
|
-
* A container identifier what used to add special class for container where the button will be generated in
|
|
6436
|
-
* Example: 'data-paypal-commerce-inline-button'
|
|
6437
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6438
|
-
*/
|
|
6439
|
-
buttonContainerDataId: string;
|
|
6440
6427
|
/**
|
|
6441
6428
|
* A class name used to add special class for container where the button will be generated in
|
|
6442
6429
|
* Default: 'PaypalCommerceInlineButton'
|
|
6443
6430
|
*/
|
|
6444
6431
|
buttonContainerClassName?: string;
|
|
6445
|
-
/**
|
|
6446
|
-
* Used by Accelerated Checkout strategy to hide native action button before rendering PayPal inline checkout button
|
|
6447
|
-
* Example: 'data-checkout-now-button'
|
|
6448
|
-
* Info: we are using data attributes as an identifier because the buttons can be rendered in several places on the page
|
|
6449
|
-
*/
|
|
6450
|
-
nativeCheckoutButtonDataId: string;
|
|
6451
6432
|
/**
|
|
6452
6433
|
* A set of styling options for the checkout button.
|
|
6453
6434
|
*/
|
|
@@ -6456,6 +6437,10 @@ declare interface PaypalCommerceInlineCheckoutButtonInitializeOptions {
|
|
|
6456
6437
|
* A callback that gets called when payment complete on paypal side.
|
|
6457
6438
|
*/
|
|
6458
6439
|
onComplete(): void;
|
|
6440
|
+
/**
|
|
6441
|
+
* A callback that gets called on any error
|
|
6442
|
+
*/
|
|
6443
|
+
onError?(): void;
|
|
6459
6444
|
}
|
|
6460
6445
|
|
|
6461
6446
|
/**
|