@bigcommerce/checkout-sdk 1.542.1 → 1.543.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 +74 -74
- 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 +3 -3
- package/docs/interfaces/{PayPalCommerceAcceleratedCheckoutPaymentInitializeOptions.md → PayPalCommerceFastlanePaymentInitializeOptions.md} +19 -19
- package/docs/interfaces/WithPayPalCommerceFastlanePaymentInitializeOptions.md +22 -0
- package/package.json +1 -1
- package/docs/interfaces/WithPayPalCommerceAcceleratedCheckoutPaymentInitializeOptions.md +0 -15
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ import { HostedFormOptions as HostedFormOptions_2 } from '@bigcommerce/checkout-
|
|
|
13
13
|
import { LoadingIndicatorStyles } from '@bigcommerce/checkout-sdk/ui';
|
|
14
14
|
import { Observable } from 'rxjs';
|
|
15
15
|
import { Omit as Omit_2 } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
16
|
-
import { PayPalCommerceConnectStylesOption } from '@bigcommerce/checkout-sdk/paypal-commerce-utils';
|
|
17
16
|
import { PayPalFastlaneStylesOption } from '@bigcommerce/checkout-sdk/paypal-commerce-utils';
|
|
18
17
|
import { PaymentErrorData } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
19
18
|
import { PaymentErrorResponseBody } from '@bigcommerce/checkout-sdk/payment-integration-api';
|
|
@@ -7088,74 +7087,6 @@ declare interface PayPalBuyNowInitializeOptions {
|
|
|
7088
7087
|
getBuyNowCartRequestBody(): BuyNowCartRequestBody_2;
|
|
7089
7088
|
}
|
|
7090
7089
|
|
|
7091
|
-
/**
|
|
7092
|
-
* A set of options that are required to initialize the PayPalCommerce Accelerated Checkout payment
|
|
7093
|
-
* method for presenting on the page.
|
|
7094
|
-
*
|
|
7095
|
-
*
|
|
7096
|
-
* Also, PayPalCommerce requires specific options to initialize PayPalCommerce Accelerated Checkout Credit Card Component
|
|
7097
|
-
* ```html
|
|
7098
|
-
* <!-- This is where the PayPalCommerce Credit Card Component will be inserted -->
|
|
7099
|
-
* <div id="container"></div>
|
|
7100
|
-
* ```
|
|
7101
|
-
* ```js
|
|
7102
|
-
* service.initializePayment({
|
|
7103
|
-
* methodId: 'paypalcommerceacceleratedcheckout',
|
|
7104
|
-
* paypalcommerceacceleratedcheckout: {
|
|
7105
|
-
* onInit: (renderPayPalComponentMethod) => renderPayPalComponentMethod('#container-id'),
|
|
7106
|
-
* onChange: (showPayPalConnectCardSelector) => showPayPalConnectCardSelector(),
|
|
7107
|
-
* styles: {
|
|
7108
|
-
* root: {
|
|
7109
|
-
* backgroundColorPrimary: 'transparent',
|
|
7110
|
-
* errorColor: '#C40B0B',
|
|
7111
|
-
* fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
7112
|
-
* },
|
|
7113
|
-
* input: {
|
|
7114
|
-
* borderRadius: '0.25rem',
|
|
7115
|
-
* borderColor: '#9E9E9E',
|
|
7116
|
-
* focusBorderColor: '#4496F6',
|
|
7117
|
-
* },
|
|
7118
|
-
* toggle: {
|
|
7119
|
-
* colorPrimary: '#0F005E',
|
|
7120
|
-
* colorSecondary: '#ffffff',
|
|
7121
|
-
* },
|
|
7122
|
-
* text: {
|
|
7123
|
-
* body: {
|
|
7124
|
-
* color: '#222222',
|
|
7125
|
-
* fontSize: '1rem',
|
|
7126
|
-
* },
|
|
7127
|
-
* caption: {
|
|
7128
|
-
* color: '#515151',
|
|
7129
|
-
* fontSize: '0.875rem',
|
|
7130
|
-
* },
|
|
7131
|
-
* },
|
|
7132
|
-
* branding: 'light',
|
|
7133
|
-
* },
|
|
7134
|
-
* },
|
|
7135
|
-
* });
|
|
7136
|
-
* ```
|
|
7137
|
-
*/
|
|
7138
|
-
declare interface PayPalCommerceAcceleratedCheckoutPaymentInitializeOptions {
|
|
7139
|
-
/**
|
|
7140
|
-
* Is a callback that takes the CSS selector of a container
|
|
7141
|
-
* where the PayPal Connect form should be inserted into.
|
|
7142
|
-
*/
|
|
7143
|
-
onInit?: (renderPayPalConnectCardComponent: (container: string) => void) => void;
|
|
7144
|
-
/**
|
|
7145
|
-
* Is a callback that shows PayPal stored instruments
|
|
7146
|
-
* when get triggered
|
|
7147
|
-
*/
|
|
7148
|
-
onChange?: (showPayPalConnectCardSelector: () => Promise<CardInstrument_2 | undefined>) => void;
|
|
7149
|
-
/**
|
|
7150
|
-
* Is a stylisation options for customizing PayPal Connect components
|
|
7151
|
-
*
|
|
7152
|
-
* Note: the styles for all PayPalCommerce Accelerated Checkout strategies should be the same,
|
|
7153
|
-
* because they will be provided to PayPal library only for the first strategy initialization
|
|
7154
|
-
* no matter what strategy was initialised first
|
|
7155
|
-
*/
|
|
7156
|
-
styles?: PayPalCommerceConnectStylesOption;
|
|
7157
|
-
}
|
|
7158
|
-
|
|
7159
7090
|
declare interface PayPalCommerceAlternativeMethodsButtonOptions {
|
|
7160
7091
|
/**
|
|
7161
7092
|
* Alternative payment method id what used for initialization PayPal button as funding source.
|
|
@@ -7599,6 +7530,74 @@ declare interface PayPalCommerceFastlaneCustomerInitializeOptions {
|
|
|
7599
7530
|
styles?: PayPalFastlaneStylesOption;
|
|
7600
7531
|
}
|
|
7601
7532
|
|
|
7533
|
+
/**
|
|
7534
|
+
* A set of options that are required to initialize the PayPalCommerce Accelerated Checkout payment
|
|
7535
|
+
* method for presenting on the page.
|
|
7536
|
+
*
|
|
7537
|
+
*
|
|
7538
|
+
* Also, PayPalCommerce requires specific options to initialize PayPal Fastlane Card Component
|
|
7539
|
+
* ```html
|
|
7540
|
+
* <!-- This is where the PayPal Fastlane Card Component will be inserted -->
|
|
7541
|
+
* <div id="container"></div>
|
|
7542
|
+
* ```
|
|
7543
|
+
* ```js
|
|
7544
|
+
* service.initializePayment({
|
|
7545
|
+
* methodId: 'paypalcommerceacceleratedcheckout', // PayPal Fastlane has 'paypalcommerceacceleratedcheckout' method id
|
|
7546
|
+
* paypalcommercefastlane: {
|
|
7547
|
+
* onInit: (renderPayPalCardComponent) => renderPayPalCardComponent('#container-id'),
|
|
7548
|
+
* onChange: (showPayPalCardSelector) => showPayPalCardSelector(),
|
|
7549
|
+
* styles: {
|
|
7550
|
+
* root: {
|
|
7551
|
+
* backgroundColorPrimary: 'transparent',
|
|
7552
|
+
* errorColor: '#C40B0B',
|
|
7553
|
+
* fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
|
|
7554
|
+
* },
|
|
7555
|
+
* input: {
|
|
7556
|
+
* borderRadius: '0.25rem',
|
|
7557
|
+
* borderColor: '#9E9E9E',
|
|
7558
|
+
* focusBorderColor: '#4496F6',
|
|
7559
|
+
* },
|
|
7560
|
+
* toggle: {
|
|
7561
|
+
* colorPrimary: '#0F005E',
|
|
7562
|
+
* colorSecondary: '#ffffff',
|
|
7563
|
+
* },
|
|
7564
|
+
* text: {
|
|
7565
|
+
* body: {
|
|
7566
|
+
* color: '#222222',
|
|
7567
|
+
* fontSize: '1rem',
|
|
7568
|
+
* },
|
|
7569
|
+
* caption: {
|
|
7570
|
+
* color: '#515151',
|
|
7571
|
+
* fontSize: '0.875rem',
|
|
7572
|
+
* },
|
|
7573
|
+
* },
|
|
7574
|
+
* branding: 'light',
|
|
7575
|
+
* },
|
|
7576
|
+
* },
|
|
7577
|
+
* });
|
|
7578
|
+
* ```
|
|
7579
|
+
*/
|
|
7580
|
+
declare interface PayPalCommerceFastlanePaymentInitializeOptions {
|
|
7581
|
+
/**
|
|
7582
|
+
* Is a callback that takes the CSS selector of a container
|
|
7583
|
+
* where the PayPal Fastlane form should be inserted into.
|
|
7584
|
+
*/
|
|
7585
|
+
onInit?: (renderPayPalCardComponent: (container: string) => void) => void;
|
|
7586
|
+
/**
|
|
7587
|
+
* Is a callback that shows PayPal stored instruments
|
|
7588
|
+
* when get triggered
|
|
7589
|
+
*/
|
|
7590
|
+
onChange?: (showPayPalCardSelector: () => Promise<CardInstrument_2 | undefined>) => void;
|
|
7591
|
+
/**
|
|
7592
|
+
* Is a stylisation options for customizing PayPal Fastlane components
|
|
7593
|
+
*
|
|
7594
|
+
* Note: the styles for all PayPalCommerceFastlane strategies should be the same,
|
|
7595
|
+
* because they will be provided to PayPal library only for the first strategy initialization
|
|
7596
|
+
* no matter what strategy was initialised first
|
|
7597
|
+
*/
|
|
7598
|
+
styles?: PayPalFastlaneStylesOption;
|
|
7599
|
+
}
|
|
7600
|
+
|
|
7602
7601
|
declare interface PayPalCommerceFieldsStyleOptions {
|
|
7603
7602
|
variables?: {
|
|
7604
7603
|
fontFamily?: string;
|
|
@@ -7827,7 +7826,7 @@ declare class PaymentHumanVerificationHandler {
|
|
|
7827
7826
|
private _isPaymentHumanVerificationRequest;
|
|
7828
7827
|
}
|
|
7829
7828
|
|
|
7830
|
-
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBlueSnapDirectAPMPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithBraintreeLocalMethodsPaymentInitializeOptions & WithBraintreeAcceleratedCheckoutPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithGooglePayPaymentInitializeOptions & WithMolliePaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithPayPalCommerceRatePayPaymentInitializeOptions &
|
|
7829
|
+
declare type PaymentInitializeOptions = BasePaymentInitializeOptions & WithAdyenV2PaymentInitializeOptions & WithAdyenV3PaymentInitializeOptions & WithApplePayPaymentInitializeOptions & WithBlueSnapDirectAPMPaymentInitializeOptions & WithBoltPaymentInitializeOptions & WithBraintreePaypalAchPaymentInitializeOptions & WithBraintreeLocalMethodsPaymentInitializeOptions & WithBraintreeAcceleratedCheckoutPaymentInitializeOptions & WithCreditCardPaymentInitializeOptions & WithGooglePayPaymentInitializeOptions & WithMolliePaymentInitializeOptions & WithPayPalCommercePaymentInitializeOptions & WithPayPalCommerceCreditPaymentInitializeOptions & WithPayPalCommerceVenmoPaymentInitializeOptions & WithPayPalCommerceAlternativeMethodsPaymentInitializeOptions & WithPayPalCommerceCreditCardsPaymentInitializeOptions & WithPayPalCommerceRatePayPaymentInitializeOptions & WithPayPalCommerceFastlanePaymentInitializeOptions & WithSquareV2PaymentInitializeOptions & WithStripeV3PaymentInitializeOptions & WithStripeUPEPaymentInitializeOptions;
|
|
7831
7830
|
|
|
7832
7831
|
declare type PaymentInstrument = CardInstrument | AccountInstrument;
|
|
7833
7832
|
|
|
@@ -9312,10 +9311,6 @@ declare interface WithMolliePaymentInitializeOptions {
|
|
|
9312
9311
|
mollie?: MolliePaymentInitializeOptions;
|
|
9313
9312
|
}
|
|
9314
9313
|
|
|
9315
|
-
declare interface WithPayPalCommerceAcceleratedCheckoutPaymentInitializeOptions {
|
|
9316
|
-
paypalcommerceacceleratedcheckout?: PayPalCommerceAcceleratedCheckoutPaymentInitializeOptions;
|
|
9317
|
-
}
|
|
9318
|
-
|
|
9319
9314
|
declare interface WithPayPalCommerceAlternativeMethodsButtonInitializeOptions {
|
|
9320
9315
|
paypalcommercealternativemethods?: PayPalCommerceAlternativeMethodsButtonOptions;
|
|
9321
9316
|
}
|
|
@@ -9359,6 +9354,11 @@ declare interface WithPayPalCommerceFastlaneCustomerInitializeOptions {
|
|
|
9359
9354
|
paypalcommercefastlane?: PayPalCommerceFastlaneCustomerInitializeOptions;
|
|
9360
9355
|
}
|
|
9361
9356
|
|
|
9357
|
+
declare interface WithPayPalCommerceFastlanePaymentInitializeOptions {
|
|
9358
|
+
paypalcommerceacceleratedcheckout?: PayPalCommerceFastlanePaymentInitializeOptions;
|
|
9359
|
+
paypalcommercefastlane?: PayPalCommerceFastlanePaymentInitializeOptions;
|
|
9360
|
+
}
|
|
9361
|
+
|
|
9362
9362
|
declare interface WithPayPalCommercePaymentInitializeOptions {
|
|
9363
9363
|
paypalcommerce?: PayPalCommercePaymentInitializeOptions;
|
|
9364
9364
|
}
|