@bigcommerce/checkout-sdk 1.621.0 → 1.621.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/dist/checkout-button.d.ts +1 -91
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- package/dist/checkout-sdk.d.ts +3 -288
- 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/dist/hosted-form-v2-iframe-host.js +1 -1
- package/dist/hosted-form-v2-iframe-host.umd.js +1 -1
- package/docs/README.md +3 -9
- package/docs/interfaces/BaseCheckoutButtonInitializeOptions.md +0 -110
- package/docs/interfaces/BaseCustomerInitializeOptions.md +0 -110
- package/docs/interfaces/BasePaymentInitializeOptions.md +0 -110
- package/docs/interfaces/GooglePayButtonInitializeOptions.md +15 -17
- package/docs/interfaces/GooglePayCustomerInitializeOptions.md +39 -13
- package/package.json +1 -1
- package/docs/enums/ButtonColor.md +0 -29
- package/docs/enums/ButtonType.md +0 -22
- package/docs/interfaces/GooglePayButtonInitializeOptions_2.md +0 -38
- package/docs/interfaces/GooglePayBuyNowInitializeOptions.md +0 -19
- package/docs/interfaces/GooglePayCustomerInitializeOptions_2.md +0 -84
- package/docs/interfaces/GooglePayPaymentInitializeOptions_2.md +0 -93
|
@@ -90,61 +90,6 @@ declare interface BaseCheckoutButtonInitializeOptions extends CheckoutButtonOpti
|
|
|
90
90
|
* The option that is required to load payment method configuration for provided currency code in Buy Now flow.
|
|
91
91
|
*/
|
|
92
92
|
currencyCode?: string;
|
|
93
|
-
/**
|
|
94
|
-
* The options that are required to initialize the GooglePay payment method.
|
|
95
|
-
* They can be omitted unless you need to support adyenv2 GooglePay.
|
|
96
|
-
*/
|
|
97
|
-
googlepayadyenv2?: GooglePayButtonInitializeOptions;
|
|
98
|
-
/**
|
|
99
|
-
* The options that are required to initialize the GooglePay payment method.
|
|
100
|
-
* They can be omitted unless you need to support adyenv2 GooglePay.
|
|
101
|
-
*/
|
|
102
|
-
googlepayadyenv3?: GooglePayButtonInitializeOptions;
|
|
103
|
-
/**
|
|
104
|
-
* The options that are required to facilitate BNZ GooglePay. They can be
|
|
105
|
-
* omitted unless you need to support BNZ GooglePay.
|
|
106
|
-
*/
|
|
107
|
-
googlepaybnz?: GooglePayButtonInitializeOptions;
|
|
108
|
-
/**
|
|
109
|
-
* The options that are required to facilitate Braintree GooglePay. They can be
|
|
110
|
-
* omitted unless you need to support Braintree GooglePay.
|
|
111
|
-
*/
|
|
112
|
-
googlepaybraintree?: GooglePayButtonInitializeOptions;
|
|
113
|
-
/**
|
|
114
|
-
* The options that are required to facilitate Checkout.com GooglePay. They can be
|
|
115
|
-
* omitted unless you need to support Checkout.com GooglePay.
|
|
116
|
-
*/
|
|
117
|
-
googlepaycheckoutcom?: GooglePayButtonInitializeOptions;
|
|
118
|
-
/**
|
|
119
|
-
* The options that are required to facilitate CybersourceV2 GooglePay. They can be
|
|
120
|
-
* omitted unless you need to support CybersourceV2 GooglePay.
|
|
121
|
-
*/
|
|
122
|
-
googlepaycybersourcev2?: GooglePayButtonInitializeOptions;
|
|
123
|
-
/**
|
|
124
|
-
* The options that are required to facilitate Orbital GooglePay. They can be
|
|
125
|
-
* omitted unless you need to support Orbital GooglePay.
|
|
126
|
-
*/
|
|
127
|
-
googlepayorbital?: GooglePayButtonInitializeOptions;
|
|
128
|
-
/**
|
|
129
|
-
* The options that are required to facilitate Stripe GooglePay. They can be
|
|
130
|
-
* omitted unless you need to support Stripe GooglePay.
|
|
131
|
-
*/
|
|
132
|
-
googlepaystripe?: GooglePayButtonInitializeOptions;
|
|
133
|
-
/**
|
|
134
|
-
* The options that are required to facilitate Stripe GooglePay. They can be
|
|
135
|
-
* omitted unless you need to support Stripe GooglePay.
|
|
136
|
-
*/
|
|
137
|
-
googlepaystripeupe?: GooglePayButtonInitializeOptions;
|
|
138
|
-
/**
|
|
139
|
-
* The options that are required to facilitate Authorize.Net GooglePay.
|
|
140
|
-
* They can be omitted unless you need to support Authorize.Net GooglePay.
|
|
141
|
-
*/
|
|
142
|
-
googlepayauthorizenet?: GooglePayButtonInitializeOptions;
|
|
143
|
-
/**
|
|
144
|
-
* The options that are required to facilitate Worldpay GooglePay. They can be
|
|
145
|
-
* omitted unless you need to support Worldpay GooglePay.
|
|
146
|
-
*/
|
|
147
|
-
googlepayworldpayaccess?: GooglePayButtonInitializeOptions;
|
|
148
93
|
/**
|
|
149
94
|
* The options that are required to facilitate PayPal. They can be omitted
|
|
150
95
|
* unless you need to support Paypal.
|
|
@@ -283,17 +228,6 @@ declare interface BraintreeVenmoButtonInitializeOptions {
|
|
|
283
228
|
style?: Pick<PaypalStyleOptions, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
|
|
284
229
|
}
|
|
285
230
|
|
|
286
|
-
declare enum ButtonColor {
|
|
287
|
-
Default = "default",
|
|
288
|
-
Black = "black",
|
|
289
|
-
White = "white"
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
declare enum ButtonType {
|
|
293
|
-
Long = "long",
|
|
294
|
-
Short = "short"
|
|
295
|
-
}
|
|
296
|
-
|
|
297
231
|
/**
|
|
298
232
|
* An object that contains the information required for creating 'Buy now' cart.
|
|
299
233
|
*/
|
|
@@ -451,26 +385,6 @@ declare interface CustomError extends Error {
|
|
|
451
385
|
declare type GooglePayButtonColor = 'default' | 'black' | 'white';
|
|
452
386
|
|
|
453
387
|
declare interface GooglePayButtonInitializeOptions {
|
|
454
|
-
/**
|
|
455
|
-
* The color of the GooglePay button that will be inserted.
|
|
456
|
-
* black (default): a black button suitable for use on white or light backgrounds.
|
|
457
|
-
* white: a white button suitable for use on colorful backgrounds.
|
|
458
|
-
*/
|
|
459
|
-
buttonColor?: ButtonColor;
|
|
460
|
-
/**
|
|
461
|
-
* The size of the GooglePay button that will be inserted.
|
|
462
|
-
* long: "Buy with Google Pay" button (default). A translated button label may appear
|
|
463
|
-
* if a language specified in the viewer's browser matches an available language.
|
|
464
|
-
* short: Google Pay payment button without the "Buy with" text.
|
|
465
|
-
*/
|
|
466
|
-
buttonType?: ButtonType;
|
|
467
|
-
/**
|
|
468
|
-
* The options that are required to initialize Buy Now functionality.
|
|
469
|
-
*/
|
|
470
|
-
buyNowInitializeOptions?: GooglePayBuyNowInitializeOptions;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
declare interface GooglePayButtonInitializeOptions_2 {
|
|
474
388
|
/**
|
|
475
389
|
* All Google Pay payment buttons exist in two styles: dark (default) and light.
|
|
476
390
|
* To provide contrast, use dark buttons on light backgrounds and light buttons on dark or colorful backgrounds.
|
|
@@ -495,10 +409,6 @@ declare interface GooglePayButtonInitializeOptions_2 {
|
|
|
495
409
|
|
|
496
410
|
declare type GooglePayButtonType = 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe' | 'long' | 'short';
|
|
497
411
|
|
|
498
|
-
declare interface GooglePayBuyNowInitializeOptions {
|
|
499
|
-
getBuyNowCartRequestBody?(): BuyNowCartRequestBody;
|
|
500
|
-
}
|
|
501
|
-
|
|
502
412
|
/**
|
|
503
413
|
* The recognized keys to pass the initialization options for Google Pay.
|
|
504
414
|
*/
|
|
@@ -780,7 +690,7 @@ declare interface WithBuyNowFeature extends AmazonPayV2ButtonConfig {
|
|
|
780
690
|
* They can be omitted unless you need to support GooglePay.
|
|
781
691
|
*/
|
|
782
692
|
declare type WithGooglePayButtonInitializeOptions = {
|
|
783
|
-
[k in GooglePayKey]?:
|
|
693
|
+
[k in GooglePayKey]?: GooglePayButtonInitializeOptions;
|
|
784
694
|
};
|
|
785
695
|
|
|
786
696
|
declare interface WithPayPalCommerceAlternativeMethodsButtonInitializeOptions {
|