@bigcommerce/checkout-sdk 1.250.0 → 1.251.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/CHANGELOG.md +15 -0
- package/dist/checkout-button.d.ts +36 -0
- 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 +36 -0
- 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.js +1 -1
- package/dist/hosted-form.js.map +1 -1
- package/dist/hosted-form.umd.js +1 -1
- package/dist/hosted-form.umd.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/enums/checkoutbuttonmethodtype.md +7 -0
- package/docs/interfaces/braintreepaypalcreditbuttoninitializeoptions.md +85 -0
- package/docs/interfaces/checkoutbuttoninitializeoptions.md +10 -0
- package/package.json +1 -1
package/dist/checkout-sdk.d.ts
CHANGED
|
@@ -1200,6 +1200,36 @@ declare interface BraintreePaymentInitializeOptions {
|
|
|
1200
1200
|
form?: BraintreeFormOptions;
|
|
1201
1201
|
}
|
|
1202
1202
|
|
|
1203
|
+
declare interface BraintreePaypalCreditButtonInitializeOptions {
|
|
1204
|
+
/**
|
|
1205
|
+
* A set of styling options for the checkout button.
|
|
1206
|
+
*/
|
|
1207
|
+
style?: Pick<PaypalButtonStyleOptions, 'layout' | 'size' | 'color' | 'label' | 'shape' | 'tagline' | 'fundingicons' | 'height'>;
|
|
1208
|
+
/**
|
|
1209
|
+
* Address to be used for shipping.
|
|
1210
|
+
* If not provided, it will use the first saved address from the active customer.
|
|
1211
|
+
*/
|
|
1212
|
+
shippingAddress?: Address | null;
|
|
1213
|
+
/**
|
|
1214
|
+
* A callback that gets called if unable to authorize and tokenize payment.
|
|
1215
|
+
*
|
|
1216
|
+
* @param error - The error object describing the failure.
|
|
1217
|
+
*/
|
|
1218
|
+
onAuthorizeError?(error: BraintreeError | StandardError): void;
|
|
1219
|
+
/**
|
|
1220
|
+
* A callback that gets called if unable to submit payment.
|
|
1221
|
+
*
|
|
1222
|
+
* @param error - The error object describing the failure.
|
|
1223
|
+
*/
|
|
1224
|
+
onPaymentError?(error: BraintreeError | StandardError): void;
|
|
1225
|
+
/**
|
|
1226
|
+
* A callback that gets called on any error instead of submit payment or authorization errors.
|
|
1227
|
+
*
|
|
1228
|
+
* @param error - The error object describing the failure.
|
|
1229
|
+
*/
|
|
1230
|
+
onError?(error: BraintreeError | StandardError): void;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1203
1233
|
declare interface BraintreePaypalV1ButtonInitializeOptions {
|
|
1204
1234
|
/**
|
|
1205
1235
|
* The ID of a container which the messaging should be inserted.
|
|
@@ -1636,6 +1666,11 @@ declare interface CheckoutButtonInitializeOptions extends CheckoutButtonOptions
|
|
|
1636
1666
|
* omitted unless you need to support Braintree Credit.
|
|
1637
1667
|
*/
|
|
1638
1668
|
braintreepaypalcredit?: BraintreePaypalV1ButtonInitializeOptions;
|
|
1669
|
+
/**
|
|
1670
|
+
* The options that are required to facilitate Braintree Credit. They can be
|
|
1671
|
+
* omitted unless you need to support Braintree Credit.
|
|
1672
|
+
*/
|
|
1673
|
+
braintreepaypalcreditv2?: BraintreePaypalCreditButtonInitializeOptions;
|
|
1639
1674
|
/**
|
|
1640
1675
|
* The options that are required to facilitate PayPal. They can be omitted
|
|
1641
1676
|
* unless you need to support Paypal.
|
|
@@ -1793,6 +1828,7 @@ declare enum CheckoutButtonMethodType {
|
|
|
1793
1828
|
BRAINTREE_PAYPAL = "braintreepaypal",
|
|
1794
1829
|
BRAINTREE_VENMO = "braintreevenmo",
|
|
1795
1830
|
BRAINTREE_PAYPAL_CREDIT = "braintreepaypalcredit",
|
|
1831
|
+
BRAINTREE_PAYPAL_CREDITV2 = "braintreepaypalcreditv2",
|
|
1796
1832
|
GOOGLEPAY_ADYENV2 = "googlepayadyenv2",
|
|
1797
1833
|
GOOGLEPAY_ADYENV3 = "googlepayadyenv3",
|
|
1798
1834
|
GOOGLEPAY_AUTHORIZENET = "googlepayauthorizenet",
|