@bigcommerce/checkout-sdk 1.308.2 → 1.308.3
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 +8 -0
- package/dist/checkout-button.js +1 -1
- package/dist/checkout-button.umd.js +1 -1
- 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 +16 -158
- package/docs/classes/internal_.CheckoutButtonErrorSelector.md +54 -0
- package/docs/classes/internal_.CheckoutButtonInitializer.md +179 -0
- package/docs/classes/internal_.CheckoutButtonStatusSelector.md +54 -0
- package/docs/classes/internal_.StandardError.md +0 -4
- package/docs/enums/internal_.AmazonPayV2ButtonColor.md +31 -0
- package/docs/enums/internal_.AmazonPayV2CheckoutLanguage.md +59 -0
- package/docs/enums/internal_.AmazonPayV2LedgerCurrency.md +38 -0
- package/docs/enums/internal_.AmazonPayV2PayOptions.md +28 -0
- package/docs/enums/internal_.AmazonPayV2Placement.md +55 -0
- package/docs/enums/internal_.CheckoutButtonMethodType.md +164 -0
- package/docs/enums/internal_.PaypalButtonStyleColorOption.md +38 -0
- package/docs/enums/internal_.PaypalButtonStyleLabelOption.md +45 -0
- package/docs/enums/internal_.PaypalButtonStyleLayoutOption.md +24 -0
- package/docs/enums/internal_.PaypalButtonStyleShapeOption.md +24 -0
- package/docs/enums/internal_.PaypalButtonStyleSizeOption.md +38 -0
- package/docs/enums/internal_.StyleButtonColor.md +45 -0
- package/docs/enums/internal_.StyleButtonLabel.md +45 -0
- package/docs/enums/internal_.StyleButtonLayout.md +24 -0
- package/docs/enums/internal_.StyleButtonShape.md +24 -0
- package/docs/interfaces/internal_.Address.md +0 -4
- package/docs/interfaces/internal_.AddressRequestBody.md +0 -2
- package/docs/interfaces/internal_.AmazonPayV2ButtonConfig.md +82 -0
- package/docs/interfaces/internal_.AmazonPayV2ButtonParams.md +117 -0
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSession.md +37 -0
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSessionConfig.md +38 -0
- package/docs/interfaces/internal_.AmazonPayV2NewButtonParams.md +139 -0
- package/docs/interfaces/internal_.AmazonPayV2Price.md +28 -0
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions.md +40 -0
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions_2.md +40 -0
- package/docs/interfaces/internal_.BaseCheckoutButtonInitializeOptions.md +291 -0
- package/docs/interfaces/internal_.BraintreeError.md +37 -0
- package/docs/interfaces/internal_.BraintreePaypalButtonInitializeOptions.md +122 -0
- package/docs/interfaces/internal_.BraintreePaypalCreditButtonInitializeOptions.md +113 -0
- package/docs/interfaces/internal_.BraintreeVenmoButtonInitializeOptions.md +56 -0
- package/docs/interfaces/internal_.BuyNowCartRequestBody.md +26 -0
- package/docs/interfaces/internal_.CheckoutButtonInitializerOptions.md +24 -0
- package/docs/interfaces/internal_.CheckoutButtonOptions.md +57 -0
- package/docs/interfaces/internal_.CheckoutButtonSelectors.md +24 -0
- package/docs/interfaces/{internal_.GooglePayCustomerInitializeOptions.md → internal_.GooglePayButtonInitializeOptions.md} +5 -16
- package/docs/interfaces/internal_.LineItem.md +8 -163
- package/docs/interfaces/internal_.PaypalButtonInitializeOptions.md +78 -0
- package/docs/interfaces/internal_.PaypalButtonStyleOptions.md +66 -0
- package/docs/interfaces/internal_.PaypalButtonStyleOptions_2.md +69 -0
- package/docs/interfaces/internal_.PaypalCommerceAlternativeMethodsButtonOptions.md +61 -0
- package/docs/interfaces/internal_.PaypalCommerceButtonInitializeOptions.md +68 -0
- package/docs/interfaces/internal_.PaypalCommerceCreditButtonInitializeOptions.md +77 -0
- package/docs/interfaces/internal_.PaypalCommerceInlineCheckoutButtonInitializeOptions.md +58 -0
- package/docs/interfaces/internal_.PaypalCommerceVenmoButtonInitializeOptions.md +52 -0
- package/docs/interfaces/internal_.RequestOptions.md +1 -5
- package/docs/interfaces/internal_.WithApplePayButtonInitializeOptions.md +17 -0
- package/docs/modules/internal_.md +51 -515
- package/package.json +1 -1
- package/docs/classes/internal_.CartChangedError.md +0 -62
- package/docs/classes/internal_.CheckoutService.md +0 -1528
- package/docs/classes/internal_.CurrencyService.md +0 -56
- package/docs/classes/internal_.EmbeddedCheckout.md +0 -42
- package/docs/classes/internal_.LanguageService.md +0 -103
- package/docs/classes/internal_.RequestError.md +0 -108
- package/docs/enums/internal_.AdyenV2CardFields.md +0 -31
- package/docs/enums/internal_.AdyenV3CardFields.md +0 -31
- package/docs/enums/internal_.CheckoutIncludes.md +0 -31
- package/docs/enums/internal_.HostedFieldType.md +0 -52
- package/docs/enums/internal_.IconStyle.md +0 -24
- package/docs/enums/internal_.RadiusUnit.md +0 -24
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks.md +0 -70
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks_2.md +0 -68
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions.md +0 -108
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions_2.md +0 -108
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions.md +0 -35
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions_2.md +0 -42
- package/docs/interfaces/internal_.AdyenComponent.md +0 -74
- package/docs/interfaces/internal_.AdyenComponentEvents.md +0 -76
- package/docs/interfaces/internal_.AdyenComponentEvents_2.md +0 -76
- package/docs/interfaces/internal_.AdyenComponent_2.md +0 -74
- package/docs/interfaces/internal_.AdyenCreditCardComponentOptions.md +0 -187
- package/docs/interfaces/internal_.AdyenIdealComponentOptions.md +0 -19
- package/docs/interfaces/internal_.AdyenPaymentMethodState.md +0 -23
- package/docs/interfaces/internal_.AdyenPaymentMethodState_2.md +0 -17
- package/docs/interfaces/internal_.AdyenPlaceholderData.md +0 -35
- package/docs/interfaces/internal_.AdyenPlaceholderData_2.md +0 -35
- package/docs/interfaces/internal_.AdyenThreeDS2Options.md +0 -99
- package/docs/interfaces/internal_.AdyenV2PaymentInitializeOptions.md +0 -162
- package/docs/interfaces/internal_.AdyenV2ValidationState.md +0 -59
- package/docs/interfaces/internal_.AdyenV3CreditCardComponentOptions.md +0 -198
- package/docs/interfaces/internal_.AdyenV3PaymentInitializeOptions.md +0 -137
- package/docs/interfaces/internal_.AdyenV3ValidationState.md +0 -59
- package/docs/interfaces/internal_.AmazonPayCustomerInitializeOptions.md +0 -67
- package/docs/interfaces/internal_.AmazonPayOrderReference.md +0 -32
- package/docs/interfaces/internal_.AmazonPayPaymentInitializeOptions.md +0 -102
- package/docs/interfaces/internal_.AmazonPayShippingInitializeOptions.md +0 -87
- package/docs/interfaces/internal_.AmazonPayV2CustomerInitializeOptions.md +0 -26
- package/docs/interfaces/internal_.AmazonPayV2PaymentInitializeOptions.md +0 -42
- package/docs/interfaces/internal_.AmazonPayV2ShippingInitializeOptions.md +0 -28
- package/docs/interfaces/internal_.AmazonPayWidgetError.md +0 -27
- package/docs/interfaces/internal_.ApplePayCustomerInitializeOptions.md +0 -79
- package/docs/interfaces/internal_.ApplePayPaymentInitializeOptions.md +0 -42
- package/docs/interfaces/internal_.BankInstrument.md +0 -114
- package/docs/interfaces/internal_.Banner.md +0 -24
- package/docs/interfaces/internal_.BaseAccountInstrument.md +0 -93
- package/docs/interfaces/internal_.BaseCustomerInitializeOptions.md +0 -237
- package/docs/interfaces/internal_.BaseElementOptions.md +0 -28
- package/docs/interfaces/internal_.BaseElementOptions_2.md +0 -50
- package/docs/interfaces/internal_.BaseIndividualElementOptions.md +0 -69
- package/docs/interfaces/internal_.BaseInstrument.md +0 -60
- package/docs/interfaces/internal_.BasePaymentInitializeOptions.md +0 -376
- package/docs/interfaces/internal_.BillingAddress.md +0 -184
- package/docs/interfaces/internal_.BillingAddressRequestBody.md +0 -155
- package/docs/interfaces/internal_.BlockElementStyles.md +0 -107
- package/docs/interfaces/internal_.BlueSnapV2PaymentInitializeOptions.md +0 -75
- package/docs/interfaces/internal_.BlueSnapV2StyleProps.md +0 -31
- package/docs/interfaces/internal_.BodlEventsPayload.md +0 -9
- package/docs/interfaces/internal_.BodlService.md +0 -172
- package/docs/interfaces/internal_.BodyStyles.md +0 -17
- package/docs/interfaces/internal_.BoltCustomerInitializeOptions.md +0 -32
- package/docs/interfaces/internal_.BoltPaymentInitializeOptions.md +0 -96
- package/docs/interfaces/internal_.BraintreePaymentInitializeOptions.md +0 -91
- package/docs/interfaces/internal_.BraintreeThreeDSecureOptions.md +0 -53
- package/docs/interfaces/internal_.BraintreeVerifyPayload.md +0 -53
- package/docs/interfaces/internal_.BraintreeVisaCheckoutCustomerInitializeOptions.md +0 -37
- package/docs/interfaces/internal_.BraintreeVisaCheckoutPaymentInitializeOptions.md +0 -72
- package/docs/interfaces/internal_.BrowserInfo.md +0 -52
- package/docs/interfaces/internal_.ButtonResponse.md +0 -21
- package/docs/interfaces/internal_.ButtonStyles.md +0 -143
- package/docs/interfaces/internal_.CardCvcElementOptions.md +0 -74
- package/docs/interfaces/internal_.CardDataPaymentMethodState.md +0 -17
- package/docs/interfaces/internal_.CardDataPaymentMethodState_2.md +0 -17
- package/docs/interfaces/internal_.CardElementOptions.md +0 -93
- package/docs/interfaces/internal_.CardExpiryElementOptions.md +0 -74
- package/docs/interfaces/internal_.CardInstrument.md +0 -117
- package/docs/interfaces/internal_.CardNumberElementOptions.md +0 -90
- package/docs/interfaces/internal_.CardPaymentMethodState.md +0 -62
- package/docs/interfaces/internal_.CardPaymentMethodState_2.md +0 -45
- package/docs/interfaces/internal_.CardState.md +0 -42
- package/docs/interfaces/internal_.CardStateErrors.md +0 -9
- package/docs/interfaces/internal_.CardStateErrors_2.md +0 -9
- package/docs/interfaces/internal_.CardState_2.md +0 -42
- package/docs/interfaces/internal_.Cart.md +0 -108
- package/docs/interfaces/internal_.ChasePayCustomerInitializeOptions.md +0 -17
- package/docs/interfaces/internal_.ChasePayInitializeOptions.md +0 -100
- package/docs/interfaces/internal_.CheckableInputStyles.md +0 -177
- package/docs/interfaces/internal_.ChecklistStyles.md +0 -129
- package/docs/interfaces/internal_.Checkout.md +0 -204
- package/docs/interfaces/internal_.CheckoutParams.md +0 -17
- package/docs/interfaces/internal_.CheckoutPayment.md +0 -44
- package/docs/interfaces/internal_.CheckoutPaymentMethodExecutedOptions.md +0 -17
- package/docs/interfaces/internal_.CheckoutRequestBody.md +0 -17
- package/docs/interfaces/internal_.CheckoutSelectors.md +0 -31
- package/docs/interfaces/internal_.CheckoutServiceOptions.md +0 -38
- package/docs/interfaces/internal_.CheckoutSettings.md +0 -203
- package/docs/interfaces/internal_.CheckoutStoreErrorSelector.md +0 -638
- package/docs/interfaces/internal_.CheckoutStoreSelector.md +0 -503
- package/docs/interfaces/internal_.CheckoutStoreStatusSelector.md +0 -760
- package/docs/interfaces/internal_.Consignment.md +0 -73
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithAddress.md +0 -31
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithShippingAddress.md +0 -31
- package/docs/interfaces/internal_.ConsignmentCreateRequestBody.md +0 -38
- package/docs/interfaces/internal_.ConsignmentLineItem.md +0 -24
- package/docs/interfaces/internal_.ConsignmentPickupOption.md +0 -17
- package/docs/interfaces/internal_.ConsignmentUpdateRequestBody.md +0 -45
- package/docs/interfaces/internal_.Coordinates.md +0 -24
- package/docs/interfaces/internal_.Country.md +0 -45
- package/docs/interfaces/internal_.Coupon.md +0 -45
- package/docs/interfaces/internal_.CreditCardInstrument.md +0 -87
- package/docs/interfaces/internal_.CreditCardPlaceHolder.md +0 -31
- package/docs/interfaces/internal_.CreditCardPlaceHolder_2.md +0 -31
- package/docs/interfaces/internal_.CssProperties.md +0 -213
- package/docs/interfaces/internal_.CssProperties_2.md +0 -213
- package/docs/interfaces/internal_.Currency.md +0 -38
- package/docs/interfaces/internal_.CustomItem.md +0 -52
- package/docs/interfaces/internal_.Customer.md +0 -93
- package/docs/interfaces/internal_.CustomerAddress.md +0 -184
- package/docs/interfaces/internal_.CustomerCredentials.md +0 -24
- package/docs/interfaces/internal_.CustomerGroup.md +0 -24
- package/docs/interfaces/internal_.CustomerPasswordRequirements.md +0 -38
- package/docs/interfaces/internal_.CustomerRequestOptions.md +0 -62
- package/docs/interfaces/internal_.DigitalItem.md +0 -312
- package/docs/interfaces/internal_.DigitalRiverElementClasses.md +0 -69
- package/docs/interfaces/internal_.DigitalRiverPaymentInitializeOptions.md +0 -148
- package/docs/interfaces/internal_.Discount.md +0 -24
- package/docs/interfaces/internal_.DisplaySettings.md +0 -17
- package/docs/interfaces/internal_.EmbeddedCheckoutCompleteEvent.md +0 -17
- package/docs/interfaces/internal_.EmbeddedCheckoutError.md +0 -31
- package/docs/interfaces/internal_.EmbeddedCheckoutErrorEvent.md +0 -24
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameErrorEvent.md +0 -24
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameLoadedEvent.md +0 -24
- package/docs/interfaces/internal_.EmbeddedCheckoutLoadedEvent.md +0 -17
- package/docs/interfaces/internal_.EmbeddedCheckoutOptions.md +0 -136
- package/docs/interfaces/internal_.EmbeddedCheckoutSignedOutEvent.md +0 -17
- package/docs/interfaces/internal_.EmbeddedCheckoutStyles.md +0 -143
- package/docs/interfaces/internal_.EmbeddedContentOptions.md +0 -17
- package/docs/interfaces/internal_.ExecutePaymentMethodCheckoutOptions.md +0 -95
- package/docs/interfaces/internal_.FlashMessage.md +0 -31
- package/docs/interfaces/internal_.FormField.md +0 -115
- package/docs/interfaces/internal_.FormFieldItem.md +0 -24
- package/docs/interfaces/internal_.FormFieldOptions.md +0 -31
- package/docs/interfaces/internal_.FormFields.md +0 -31
- package/docs/interfaces/internal_.GatewayOrderPayment.md +0 -110
- package/docs/interfaces/internal_.GiftCertificate.md +0 -45
- package/docs/interfaces/internal_.GiftCertificateItem.md +0 -80
- package/docs/interfaces/internal_.GiftCertificateOrderPayment.md +0 -96
- package/docs/interfaces/internal_.GooglePayPaymentInitializeOptions.md +0 -95
- package/docs/interfaces/internal_.HostedCardFieldOptions.md +0 -37
- package/docs/interfaces/internal_.HostedCardFieldOptionsMap.md +0 -38
- package/docs/interfaces/internal_.HostedFieldStylesMap.md +0 -31
- package/docs/interfaces/internal_.HostedFormOptions.md +0 -116
- package/docs/interfaces/internal_.HostedInputValidateErrorData.md +0 -31
- package/docs/interfaces/internal_.HostedInputValidateErrorDataMap.md +0 -52
- package/docs/interfaces/internal_.HostedInputValidateResults.md +0 -24
- package/docs/interfaces/internal_.HostedInstrument.md +0 -24
- package/docs/interfaces/internal_.HostedStoredCardFieldOptions.md +0 -56
- package/docs/interfaces/internal_.HostedStoredCardFieldOptionsMap.md +0 -24
- package/docs/interfaces/internal_.IbanElementOptions.md +0 -84
- package/docs/interfaces/internal_.IdealElementOptions.md +0 -72
- package/docs/interfaces/internal_.IndividualCardElementOptions.md +0 -38
- package/docs/interfaces/internal_.InitializationStrategy.md +0 -23
- package/docs/interfaces/internal_.InlineElementStyles.md +0 -55
- package/docs/interfaces/internal_.InputDetail.md +0 -82
- package/docs/interfaces/internal_.InputDetail_2.md +0 -82
- package/docs/interfaces/internal_.InputStyles.md +0 -154
- package/docs/interfaces/internal_.Item.md +0 -24
- package/docs/interfaces/internal_.Item_2.md +0 -28
- package/docs/interfaces/internal_.Item_3.md +0 -28
- package/docs/interfaces/internal_.KlarnaLoadResponse.md +0 -30
- package/docs/interfaces/internal_.KlarnaLoadResponse_2.md +0 -30
- package/docs/interfaces/internal_.KlarnaPaymentInitializeOptions.md +0 -75
- package/docs/interfaces/internal_.KlarnaV2PaymentInitializeOptions.md +0 -75
- package/docs/interfaces/internal_.LabelStyles.md +0 -78
- package/docs/interfaces/internal_.LanguageConfig.md +0 -59
- package/docs/interfaces/internal_.LineItemCategory.md +0 -17
- package/docs/interfaces/internal_.LineItemMap.md +0 -38
- package/docs/interfaces/internal_.LineItemOption.md +0 -38
- package/docs/interfaces/internal_.LineItemSocialData.md +0 -38
- package/docs/interfaces/internal_.LinkStyles.md +0 -92
- package/docs/interfaces/internal_.LoadingIndicatorStyles.md +0 -31
- package/docs/interfaces/internal_.Locales.md +0 -9
- package/docs/interfaces/internal_.MasterpassCustomerInitializeOptions.md +0 -19
- package/docs/interfaces/internal_.MasterpassPaymentInitializeOptions.md +0 -37
- package/docs/interfaces/internal_.MolliePaymentInitializeOptions.md +0 -126
- package/docs/interfaces/internal_.MonerisPaymentInitializeOptions.md +0 -59
- package/docs/interfaces/internal_.MonerisStylingProps.md +0 -82
- package/docs/interfaces/internal_.NonceGenerationError.md +0 -31
- package/docs/interfaces/internal_.NonceInstrument.md +0 -38
- package/docs/interfaces/internal_.Option_2.md +0 -24
- package/docs/interfaces/internal_.OptionsResponse.md +0 -79
- package/docs/interfaces/internal_.OpyPaymentInitializeOptions.md +0 -40
- package/docs/interfaces/internal_.Order.md +0 -199
- package/docs/interfaces/internal_.OrderConsignment.md +0 -17
- package/docs/interfaces/internal_.OrderPayment.md +0 -60
- package/docs/interfaces/internal_.OrderPaymentRequestBody.md +0 -41
- package/docs/interfaces/internal_.OrderRequestBody.md +0 -35
- package/docs/interfaces/internal_.OrderShippingConsignment.md +0 -220
- package/docs/interfaces/internal_.PasswordRequirements.md +0 -38
- package/docs/interfaces/internal_.PayPalInstrument.md +0 -93
- package/docs/interfaces/internal_.PaymentMethod.md +0 -100
- package/docs/interfaces/internal_.PaymentMethodConfig.md +0 -122
- package/docs/interfaces/internal_.PaymentRequestOptions.md +0 -69
- package/docs/interfaces/internal_.PaymentSettings.md +0 -24
- package/docs/interfaces/internal_.PaypalCommerceCreditCardPaymentInitializeOptions.md +0 -92
- package/docs/interfaces/internal_.PaypalCommerceFormFieldCardTypeChangeEventData.md +0 -17
- package/docs/interfaces/internal_.PaypalCommerceFormFieldKeyboardEventData.md +0 -17
- package/docs/interfaces/internal_.PaypalCommerceFormFieldOptions.md +0 -30
- package/docs/interfaces/internal_.PaypalCommerceFormFieldStylesMap.md +0 -31
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateErrorData.md +0 -31
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateEventData.md +0 -35
- package/docs/interfaces/internal_.PaypalCommerceFormFieldsMap.md +0 -38
- package/docs/interfaces/internal_.PaypalCommerceFormOptions.md +0 -150
- package/docs/interfaces/internal_.PaypalCommercePaymentInitializeOptions.md +0 -188
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldOptions.md +0 -45
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldsMap.md +0 -24
- package/docs/interfaces/internal_.PaypalExpressPaymentInitializeOptions.md +0 -38
- package/docs/interfaces/internal_.PaypalFieldsStyleOptions.md +0 -48
- package/docs/interfaces/internal_.PhysicalItem.md +0 -313
- package/docs/interfaces/internal_.PickupMethod.md +0 -45
- package/docs/interfaces/internal_.PickupOptionResult.md +0 -17
- package/docs/interfaces/internal_.Promotion.md +0 -17
- package/docs/interfaces/internal_.Radius.md +0 -24
- package/docs/interfaces/internal_.Region.md +0 -24
- package/docs/interfaces/internal_.SearchArea.md +0 -24
- package/docs/interfaces/internal_.SepaPlaceHolder.md +0 -24
- package/docs/interfaces/internal_.SepaPlaceHolder_2.md +0 -24
- package/docs/interfaces/internal_.ShippingInitializeOptions.md +0 -100
- package/docs/interfaces/internal_.ShippingOption.md +0 -66
- package/docs/interfaces/internal_.ShippingRequestOptions.md +0 -67
- package/docs/interfaces/internal_.ShopperConfig.md +0 -31
- package/docs/interfaces/internal_.ShopperCurrency.md +0 -96
- package/docs/interfaces/internal_.SignInEmail.md +0 -24
- package/docs/interfaces/internal_.SignInEmailRequestBody.md +0 -24
- package/docs/interfaces/internal_.SpamProtectionOptions.md +0 -27
- package/docs/interfaces/internal_.SquareFormElement.md +0 -30
- package/docs/interfaces/internal_.SquarePaymentInitializeOptions.md +0 -133
- package/docs/interfaces/internal_.StepStyles.md +0 -122
- package/docs/interfaces/internal_.StepTracker.md +0 -66
- package/docs/interfaces/internal_.StepTrackerConfig.md +0 -17
- package/docs/interfaces/internal_.StoreConfig.md +0 -117
- package/docs/interfaces/internal_.StoreCurrency.md +0 -58
- package/docs/interfaces/internal_.StoreLinks.md +0 -59
- package/docs/interfaces/internal_.StoreProfile.md +0 -73
- package/docs/interfaces/internal_.StripeCustomerEvent.md +0 -76
- package/docs/interfaces/internal_.StripeElementCSSProperties.md +0 -172
- package/docs/interfaces/internal_.StripeElementClasses.md +0 -65
- package/docs/interfaces/internal_.StripeElementStyle.md +0 -46
- package/docs/interfaces/internal_.StripeElementStyleVariant.md +0 -289
- package/docs/interfaces/internal_.StripeEvent.md +0 -39
- package/docs/interfaces/internal_.StripeShippingEvent.md +0 -76
- package/docs/interfaces/internal_.StripeUPECustomerInitializeOptions.md +0 -94
- package/docs/interfaces/internal_.StripeUPEPaymentInitializeOptions.md +0 -72
- package/docs/interfaces/internal_.StripeUPEShippingInitializeOptions.md +0 -109
- package/docs/interfaces/internal_.StripeV3PaymentInitializeOptions.md +0 -78
- package/docs/interfaces/internal_.StyleOptions.md +0 -46
- package/docs/interfaces/internal_.StyleOptions_2.md +0 -46
- package/docs/interfaces/internal_.SubInputDetail.md +0 -64
- package/docs/interfaces/internal_.SubInputDetail_2.md +0 -64
- package/docs/interfaces/internal_.Subscriptions.md +0 -31
- package/docs/interfaces/internal_.Tax.md +0 -24
- package/docs/interfaces/internal_.TextInputStyles.md +0 -177
- package/docs/interfaces/internal_.ThreeDSecure.md +0 -52
- package/docs/interfaces/internal_.ThreeDSecureToken.md +0 -17
- package/docs/interfaces/internal_.TranslationData.md +0 -9
- package/docs/interfaces/internal_.Translations.md +0 -9
- package/docs/interfaces/internal_.UnknownObject.md +0 -9
- package/docs/interfaces/internal_.VaultedInstrument.md +0 -31
- package/docs/interfaces/internal_.WechatDataPaymentMethodState.md +0 -17
- package/docs/interfaces/internal_.WechatDataPaymentMethodState_2.md +0 -17
- package/docs/interfaces/internal_.WechatState.md +0 -17
- package/docs/interfaces/internal_.WechatState_2.md +0 -17
- package/docs/interfaces/internal_.WithAccountCreation.md +0 -17
- package/docs/interfaces/internal_.WithAdyenV2PaymentInitializeOptions.md +0 -20
- package/docs/interfaces/internal_.WithAdyenV3PaymentInitializeOptions.md +0 -20
- package/docs/interfaces/internal_.WithApplePayCustomerInitializeOptions.md +0 -20
- package/docs/interfaces/internal_.WithApplePayPaymentInitializeOptions.md +0 -20
- package/docs/interfaces/internal_.WithCheckoutcomFawryInstrument.md +0 -24
- package/docs/interfaces/internal_.WithCheckoutcomSEPAInstrument.md +0 -24
- package/docs/interfaces/internal_.WithCheckoutcomiDealInstrument.md +0 -17
- package/docs/interfaces/internal_.WithDocumentInstrument.md +0 -17
- package/docs/interfaces/internal_.WithMollieIssuerInstrument.md +0 -24
- package/docs/interfaces/internal_.WorldpayAccessPaymentInitializeOptions.md +0 -32
- package/docs/interfaces/internal_.ZipCodeElementOptions.md +0 -17
package/docs/README.md
CHANGED
|
@@ -10,181 +10,39 @@
|
|
|
10
10
|
|
|
11
11
|
### Functions
|
|
12
12
|
|
|
13
|
-
- [
|
|
14
|
-
- [createCheckoutService](README.md#createcheckoutservice)
|
|
15
|
-
- [createCurrencyService](README.md#createcurrencyservice)
|
|
16
|
-
- [createLanguageService](README.md#createlanguageservice)
|
|
17
|
-
- [createStepTracker](README.md#createsteptracker)
|
|
18
|
-
- [embedCheckout](README.md#embedcheckout)
|
|
13
|
+
- [createCheckoutButtonInitializer](README.md#createcheckoutbuttoninitializer)
|
|
19
14
|
|
|
20
15
|
## Functions
|
|
21
16
|
|
|
22
|
-
###
|
|
17
|
+
### createCheckoutButtonInitializer
|
|
23
18
|
|
|
24
|
-
▸ **
|
|
19
|
+
▸ **createCheckoutButtonInitializer**(`options?`): [`CheckoutButtonInitializer`](classes/internal_.CheckoutButtonInitializer.md)
|
|
25
20
|
|
|
26
|
-
Creates an instance of
|
|
21
|
+
Creates an instance of `CheckoutButtonInitializer`.
|
|
27
22
|
|
|
28
23
|
**`remarks`** ```js
|
|
29
|
-
const
|
|
30
|
-
bodlService.checkoutBegin();
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
#### Parameters
|
|
34
|
-
|
|
35
|
-
| Name | Type |
|
|
36
|
-
| :------ | :------ |
|
|
37
|
-
| `subscribe` | (`subscriber`: (`state`: [`CheckoutSelectors`](interfaces/internal_.CheckoutSelectors.md)) => `void`) => `void` |
|
|
38
|
-
|
|
39
|
-
#### Returns
|
|
40
|
-
|
|
41
|
-
[`BodlService`](interfaces/internal_.BodlService.md)
|
|
42
|
-
|
|
43
|
-
an instance of `BodlService`.
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### createCheckoutService
|
|
24
|
+
const initializer = createCheckoutButtonInitializer();
|
|
48
25
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const service = createCheckoutService();
|
|
55
|
-
|
|
56
|
-
service.subscribe(state => {
|
|
57
|
-
console.log(state);
|
|
26
|
+
initializer.initializeButton({
|
|
27
|
+
methodId: 'braintreepaypal',
|
|
28
|
+
braintreepaypal: {
|
|
29
|
+
container: '#checkoutButton',
|
|
30
|
+
},
|
|
58
31
|
});
|
|
59
|
-
|
|
60
|
-
service.loadCheckout();
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
#### Parameters
|
|
64
|
-
|
|
65
|
-
| Name | Type | Description |
|
|
66
|
-
| :------ | :------ | :------ |
|
|
67
|
-
| `options?` | [`CheckoutServiceOptions`](interfaces/internal_.CheckoutServiceOptions.md) | A set of construction options. |
|
|
68
|
-
|
|
69
|
-
#### Returns
|
|
70
|
-
|
|
71
|
-
[`CheckoutService`](classes/internal_.CheckoutService.md)
|
|
72
|
-
|
|
73
|
-
an instance of `CheckoutService`.
|
|
74
|
-
|
|
75
|
-
___
|
|
76
|
-
|
|
77
|
-
### createCurrencyService
|
|
78
|
-
|
|
79
|
-
▸ **createCurrencyService**(`config`): [`CurrencyService`](classes/internal_.CurrencyService.md)
|
|
80
|
-
|
|
81
|
-
Creates an instance of `CurrencyService`.
|
|
82
|
-
|
|
83
|
-
**`remarks`** ```js
|
|
84
|
-
const { data } = checkoutService.getState();
|
|
85
|
-
const config = data.getConfig();
|
|
86
|
-
const checkout = data.getCheckout();
|
|
87
|
-
const currencyService = createCurrencyService(config);
|
|
88
|
-
|
|
89
|
-
currencyService.toStoreCurrency(checkout.grandTotal);
|
|
90
|
-
currencyService.toCustomerCurrency(checkout.grandTotal);
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
#### Parameters
|
|
94
|
-
|
|
95
|
-
| Name | Type | Description |
|
|
96
|
-
| :------ | :------ | :------ |
|
|
97
|
-
| `config` | [`StoreConfig`](interfaces/internal_.StoreConfig.md) | The config object containing the currency configuration |
|
|
98
|
-
|
|
99
|
-
#### Returns
|
|
100
|
-
|
|
101
|
-
[`CurrencyService`](classes/internal_.CurrencyService.md)
|
|
102
|
-
|
|
103
|
-
an instance of `CurrencyService`.
|
|
104
|
-
|
|
105
|
-
___
|
|
106
|
-
|
|
107
|
-
### createLanguageService
|
|
108
|
-
|
|
109
|
-
▸ **createLanguageService**(`config?`): [`LanguageService`](classes/internal_.LanguageService.md)
|
|
110
|
-
|
|
111
|
-
Creates an instance of `LanguageService`.
|
|
112
|
-
|
|
113
|
-
**`remarks`** ```js
|
|
114
|
-
const language = {{{langJson 'optimized_checkout'}}}; // `langJson` is a Handlebars helper provided by BigCommerce's Stencil template engine.
|
|
115
|
-
const service = createLanguageService(language);
|
|
116
|
-
|
|
117
|
-
console.log(service.translate('address.city_label'));
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
#### Parameters
|
|
121
|
-
|
|
122
|
-
| Name | Type | Description |
|
|
123
|
-
| :------ | :------ | :------ |
|
|
124
|
-
| `config?` | `Partial`<[`LanguageConfig`](interfaces/internal_.LanguageConfig.md)\> | A configuration object. |
|
|
125
|
-
|
|
126
|
-
#### Returns
|
|
127
|
-
|
|
128
|
-
[`LanguageService`](classes/internal_.LanguageService.md)
|
|
129
|
-
|
|
130
|
-
An instance of `LanguageService`.
|
|
131
|
-
|
|
132
|
-
___
|
|
133
|
-
|
|
134
|
-
### createStepTracker
|
|
135
|
-
|
|
136
|
-
▸ **createStepTracker**(`checkoutService`, `stepTrackerConfig?`): [`StepTracker`](interfaces/internal_.StepTracker.md)
|
|
137
|
-
|
|
138
|
-
Creates an instance of `StepTracker`.
|
|
139
|
-
|
|
140
|
-
**`remarks`** ```js
|
|
141
|
-
const checkoutService = createCheckoutService();
|
|
142
|
-
await checkoutService.loadCheckout();
|
|
143
|
-
const stepTracker = createStepTracker(checkoutService);
|
|
144
|
-
|
|
145
|
-
stepTracker.trackCheckoutStarted();
|
|
146
32
|
```
|
|
147
33
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
| :------ | :------ |
|
|
152
|
-
| `checkoutService` | [`CheckoutService`](classes/internal_.CheckoutService.md) |
|
|
153
|
-
| `stepTrackerConfig?` | [`StepTrackerConfig`](interfaces/internal_.StepTrackerConfig.md) |
|
|
154
|
-
|
|
155
|
-
#### Returns
|
|
156
|
-
|
|
157
|
-
[`StepTracker`](interfaces/internal_.StepTracker.md)
|
|
158
|
-
|
|
159
|
-
an instance of `StepTracker`.
|
|
160
|
-
|
|
161
|
-
___
|
|
162
|
-
|
|
163
|
-
### embedCheckout
|
|
164
|
-
|
|
165
|
-
▸ **embedCheckout**(`options`): `Promise`<[`EmbeddedCheckout`](classes/internal_.EmbeddedCheckout.md)\>
|
|
166
|
-
|
|
167
|
-
Embed the checkout form in an iframe.
|
|
168
|
-
|
|
169
|
-
**`remarks`** Once the iframe is embedded, it will automatically resize according to the
|
|
170
|
-
size of the checkout form. It will also notify the parent window when certain
|
|
171
|
-
events have occurred. i.e.: when the form is loaded and ready to be used.
|
|
172
|
-
|
|
173
|
-
```js
|
|
174
|
-
embedCheckout({
|
|
175
|
-
url: 'https://checkout/url',
|
|
176
|
-
containerId: 'container-id',
|
|
177
|
-
});
|
|
178
|
-
```
|
|
34
|
+
Please note that `CheckoutButtonInitializer` is currently in an early stage
|
|
35
|
+
of development. Therefore the API is unstable and not ready for public
|
|
36
|
+
consumption.
|
|
179
37
|
|
|
180
38
|
#### Parameters
|
|
181
39
|
|
|
182
40
|
| Name | Type | Description |
|
|
183
41
|
| :------ | :------ | :------ |
|
|
184
|
-
| `options
|
|
42
|
+
| `options?` | [`CheckoutButtonInitializerOptions`](interfaces/internal_.CheckoutButtonInitializerOptions.md) | A set of construction options. |
|
|
185
43
|
|
|
186
44
|
#### Returns
|
|
187
45
|
|
|
188
|
-
|
|
46
|
+
[`CheckoutButtonInitializer`](classes/internal_.CheckoutButtonInitializer.md)
|
|
189
47
|
|
|
190
|
-
|
|
48
|
+
an instance of `CheckoutButtonInitializer`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / CheckoutButtonErrorSelector
|
|
2
|
+
|
|
3
|
+
# Class: CheckoutButtonErrorSelector
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).CheckoutButtonErrorSelector
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](internal_.CheckoutButtonErrorSelector.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [getDeinitializeButtonError](internal_.CheckoutButtonErrorSelector.md#getdeinitializebuttonerror)
|
|
16
|
+
- [getInitializeButtonError](internal_.CheckoutButtonErrorSelector.md#getinitializebuttonerror)
|
|
17
|
+
|
|
18
|
+
## Constructors
|
|
19
|
+
|
|
20
|
+
### constructor
|
|
21
|
+
|
|
22
|
+
• **new CheckoutButtonErrorSelector**()
|
|
23
|
+
|
|
24
|
+
## Methods
|
|
25
|
+
|
|
26
|
+
### getDeinitializeButtonError
|
|
27
|
+
|
|
28
|
+
▸ **getDeinitializeButtonError**(`methodId?`): `undefined` \| `Error`
|
|
29
|
+
|
|
30
|
+
#### Parameters
|
|
31
|
+
|
|
32
|
+
| Name | Type |
|
|
33
|
+
| :------ | :------ |
|
|
34
|
+
| `methodId?` | [`CheckoutButtonMethodType`](../enums/internal_.CheckoutButtonMethodType.md) |
|
|
35
|
+
|
|
36
|
+
#### Returns
|
|
37
|
+
|
|
38
|
+
`undefined` \| `Error`
|
|
39
|
+
|
|
40
|
+
___
|
|
41
|
+
|
|
42
|
+
### getInitializeButtonError
|
|
43
|
+
|
|
44
|
+
▸ **getInitializeButtonError**(`methodId?`): `undefined` \| `Error`
|
|
45
|
+
|
|
46
|
+
#### Parameters
|
|
47
|
+
|
|
48
|
+
| Name | Type |
|
|
49
|
+
| :------ | :------ |
|
|
50
|
+
| `methodId?` | [`CheckoutButtonMethodType`](../enums/internal_.CheckoutButtonMethodType.md) |
|
|
51
|
+
|
|
52
|
+
#### Returns
|
|
53
|
+
|
|
54
|
+
`undefined` \| `Error`
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / CheckoutButtonInitializer
|
|
2
|
+
|
|
3
|
+
# Class: CheckoutButtonInitializer
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).CheckoutButtonInitializer
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](internal_.CheckoutButtonInitializer.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [deinitializeButton](internal_.CheckoutButtonInitializer.md#deinitializebutton)
|
|
16
|
+
- [getState](internal_.CheckoutButtonInitializer.md#getstate)
|
|
17
|
+
- [initializeButton](internal_.CheckoutButtonInitializer.md#initializebutton)
|
|
18
|
+
- [subscribe](internal_.CheckoutButtonInitializer.md#subscribe)
|
|
19
|
+
|
|
20
|
+
## Constructors
|
|
21
|
+
|
|
22
|
+
### constructor
|
|
23
|
+
|
|
24
|
+
• **new CheckoutButtonInitializer**()
|
|
25
|
+
|
|
26
|
+
## Methods
|
|
27
|
+
|
|
28
|
+
### deinitializeButton
|
|
29
|
+
|
|
30
|
+
▸ **deinitializeButton**(`options`): `Promise`<[`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)\>
|
|
31
|
+
|
|
32
|
+
De-initializes the checkout button by performing any necessary clean-ups.
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
await service.deinitializeButton({
|
|
36
|
+
methodId: 'braintreepaypal',
|
|
37
|
+
});
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Parameters
|
|
41
|
+
|
|
42
|
+
| Name | Type | Description |
|
|
43
|
+
| :------ | :------ | :------ |
|
|
44
|
+
| `options` | [`CheckoutButtonOptions`](../interfaces/internal_.CheckoutButtonOptions.md) | Options for deinitializing the checkout button. |
|
|
45
|
+
|
|
46
|
+
#### Returns
|
|
47
|
+
|
|
48
|
+
`Promise`<[`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)\>
|
|
49
|
+
|
|
50
|
+
A promise that resolves to the current state.
|
|
51
|
+
|
|
52
|
+
___
|
|
53
|
+
|
|
54
|
+
### getState
|
|
55
|
+
|
|
56
|
+
▸ **getState**(): [`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)
|
|
57
|
+
|
|
58
|
+
Returns a snapshot of the current state.
|
|
59
|
+
|
|
60
|
+
The method returns a new instance every time there is a change in the
|
|
61
|
+
state. You can query the state by calling any of its getter methods.
|
|
62
|
+
|
|
63
|
+
```js
|
|
64
|
+
const state = service.getState();
|
|
65
|
+
|
|
66
|
+
console.log(state.errors.getInitializeButtonError());
|
|
67
|
+
console.log(state.statuses.isInitializingButton());
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### Returns
|
|
71
|
+
|
|
72
|
+
[`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)
|
|
73
|
+
|
|
74
|
+
The current customer's checkout state
|
|
75
|
+
|
|
76
|
+
___
|
|
77
|
+
|
|
78
|
+
### initializeButton
|
|
79
|
+
|
|
80
|
+
▸ **initializeButton**(`options`): `Promise`<[`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)\>
|
|
81
|
+
|
|
82
|
+
Initializes the checkout button of a payment method.
|
|
83
|
+
|
|
84
|
+
When the checkout button is initialized, it will be inserted into the DOM,
|
|
85
|
+
ready to be interacted with by the customer.
|
|
86
|
+
|
|
87
|
+
```js
|
|
88
|
+
initializer.initializeButton({
|
|
89
|
+
methodId: 'braintreepaypal',
|
|
90
|
+
containerId: 'checkoutButton',
|
|
91
|
+
braintreepaypal: {
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
#### Parameters
|
|
97
|
+
|
|
98
|
+
| Name | Type | Description |
|
|
99
|
+
| :------ | :------ | :------ |
|
|
100
|
+
| `options` | [`CheckoutButtonInitializeOptions`](../modules/internal_.md#checkoutbuttoninitializeoptions) | Options for initializing the checkout button. |
|
|
101
|
+
|
|
102
|
+
#### Returns
|
|
103
|
+
|
|
104
|
+
`Promise`<[`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)\>
|
|
105
|
+
|
|
106
|
+
A promise that resolves to the current state.
|
|
107
|
+
|
|
108
|
+
___
|
|
109
|
+
|
|
110
|
+
### subscribe
|
|
111
|
+
|
|
112
|
+
▸ **subscribe**(`subscriber`, ...`filters`): () => `void`
|
|
113
|
+
|
|
114
|
+
Subscribes to any changes to the current state.
|
|
115
|
+
|
|
116
|
+
The method registers a callback function and executes it every time there
|
|
117
|
+
is a change in the current state.
|
|
118
|
+
|
|
119
|
+
```js
|
|
120
|
+
service.subscribe(state => {
|
|
121
|
+
console.log(state.statuses.isInitializingButton());
|
|
122
|
+
});
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The method can be configured to notify subscribers only regarding
|
|
126
|
+
relevant changes, by providing a filter function.
|
|
127
|
+
|
|
128
|
+
```js
|
|
129
|
+
const filter = state => state.errors.getInitializeButtonError();
|
|
130
|
+
|
|
131
|
+
// Only trigger the subscriber when the cart changes.
|
|
132
|
+
service.subscribe(state => {
|
|
133
|
+
console.log(state.errors.getInitializeButtonError())
|
|
134
|
+
}, filter);
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
#### Parameters
|
|
138
|
+
|
|
139
|
+
| Name | Type | Description |
|
|
140
|
+
| :------ | :------ | :------ |
|
|
141
|
+
| `subscriber` | (`state`: [`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)) => `void` | The function to subscribe to state changes. |
|
|
142
|
+
| `...filters` | (`state`: [`CheckoutButtonSelectors`](../interfaces/internal_.CheckoutButtonSelectors.md)) => `any`[] | One or more functions to filter out irrelevant state changes. If more than one function is provided, the subscriber will only be triggered if all conditions are met. |
|
|
143
|
+
|
|
144
|
+
#### Returns
|
|
145
|
+
|
|
146
|
+
`fn`
|
|
147
|
+
|
|
148
|
+
A function, if called, will unsubscribe the subscriber.
|
|
149
|
+
|
|
150
|
+
▸ (): `void`
|
|
151
|
+
|
|
152
|
+
Subscribes to any changes to the current state.
|
|
153
|
+
|
|
154
|
+
The method registers a callback function and executes it every time there
|
|
155
|
+
is a change in the current state.
|
|
156
|
+
|
|
157
|
+
```js
|
|
158
|
+
service.subscribe(state => {
|
|
159
|
+
console.log(state.statuses.isInitializingButton());
|
|
160
|
+
});
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
The method can be configured to notify subscribers only regarding
|
|
164
|
+
relevant changes, by providing a filter function.
|
|
165
|
+
|
|
166
|
+
```js
|
|
167
|
+
const filter = state => state.errors.getInitializeButtonError();
|
|
168
|
+
|
|
169
|
+
// Only trigger the subscriber when the cart changes.
|
|
170
|
+
service.subscribe(state => {
|
|
171
|
+
console.log(state.errors.getInitializeButtonError())
|
|
172
|
+
}, filter);
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
##### Returns
|
|
176
|
+
|
|
177
|
+
`void`
|
|
178
|
+
|
|
179
|
+
A function, if called, will unsubscribe the subscriber.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / CheckoutButtonStatusSelector
|
|
2
|
+
|
|
3
|
+
# Class: CheckoutButtonStatusSelector
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).CheckoutButtonStatusSelector
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Constructors
|
|
10
|
+
|
|
11
|
+
- [constructor](internal_.CheckoutButtonStatusSelector.md#constructor)
|
|
12
|
+
|
|
13
|
+
### Methods
|
|
14
|
+
|
|
15
|
+
- [isDeinitializingButton](internal_.CheckoutButtonStatusSelector.md#isdeinitializingbutton)
|
|
16
|
+
- [isInitializingButton](internal_.CheckoutButtonStatusSelector.md#isinitializingbutton)
|
|
17
|
+
|
|
18
|
+
## Constructors
|
|
19
|
+
|
|
20
|
+
### constructor
|
|
21
|
+
|
|
22
|
+
• **new CheckoutButtonStatusSelector**()
|
|
23
|
+
|
|
24
|
+
## Methods
|
|
25
|
+
|
|
26
|
+
### isDeinitializingButton
|
|
27
|
+
|
|
28
|
+
▸ **isDeinitializingButton**(`methodId?`): `boolean`
|
|
29
|
+
|
|
30
|
+
#### Parameters
|
|
31
|
+
|
|
32
|
+
| Name | Type |
|
|
33
|
+
| :------ | :------ |
|
|
34
|
+
| `methodId?` | [`CheckoutButtonMethodType`](../enums/internal_.CheckoutButtonMethodType.md) |
|
|
35
|
+
|
|
36
|
+
#### Returns
|
|
37
|
+
|
|
38
|
+
`boolean`
|
|
39
|
+
|
|
40
|
+
___
|
|
41
|
+
|
|
42
|
+
### isInitializingButton
|
|
43
|
+
|
|
44
|
+
▸ **isInitializingButton**(`methodId?`): `boolean`
|
|
45
|
+
|
|
46
|
+
#### Parameters
|
|
47
|
+
|
|
48
|
+
| Name | Type |
|
|
49
|
+
| :------ | :------ |
|
|
50
|
+
| `methodId?` | [`CheckoutButtonMethodType`](../enums/internal_.CheckoutButtonMethodType.md) |
|
|
51
|
+
|
|
52
|
+
#### Returns
|
|
53
|
+
|
|
54
|
+
`boolean`
|
|
@@ -13,10 +13,6 @@ all custom errors thrown in this library.
|
|
|
13
13
|
|
|
14
14
|
↳ **`StandardError`**
|
|
15
15
|
|
|
16
|
-
↳↳ [`CartChangedError`](internal_.CartChangedError.md)
|
|
17
|
-
|
|
18
|
-
↳↳ [`RequestError`](internal_.RequestError.md)
|
|
19
|
-
|
|
20
16
|
## Implements
|
|
21
17
|
|
|
22
18
|
- [`CustomError`](../interfaces/internal_.CustomError.md)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / AmazonPayV2ButtonColor
|
|
2
|
+
|
|
3
|
+
# Enumeration: AmazonPayV2ButtonColor
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).AmazonPayV2ButtonColor
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Enumeration Members
|
|
10
|
+
|
|
11
|
+
- [DarkGray](internal_.AmazonPayV2ButtonColor.md#darkgray)
|
|
12
|
+
- [Gold](internal_.AmazonPayV2ButtonColor.md#gold)
|
|
13
|
+
- [LightGray](internal_.AmazonPayV2ButtonColor.md#lightgray)
|
|
14
|
+
|
|
15
|
+
## Enumeration Members
|
|
16
|
+
|
|
17
|
+
### DarkGray
|
|
18
|
+
|
|
19
|
+
• **DarkGray**
|
|
20
|
+
|
|
21
|
+
___
|
|
22
|
+
|
|
23
|
+
### Gold
|
|
24
|
+
|
|
25
|
+
• **Gold**
|
|
26
|
+
|
|
27
|
+
___
|
|
28
|
+
|
|
29
|
+
### LightGray
|
|
30
|
+
|
|
31
|
+
• **LightGray**
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / AmazonPayV2CheckoutLanguage
|
|
2
|
+
|
|
3
|
+
# Enumeration: AmazonPayV2CheckoutLanguage
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).AmazonPayV2CheckoutLanguage
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Enumeration Members
|
|
10
|
+
|
|
11
|
+
- [de\_DE](internal_.AmazonPayV2CheckoutLanguage.md#de_de)
|
|
12
|
+
- [en\_GB](internal_.AmazonPayV2CheckoutLanguage.md#en_gb)
|
|
13
|
+
- [en\_US](internal_.AmazonPayV2CheckoutLanguage.md#en_us)
|
|
14
|
+
- [es\_ES](internal_.AmazonPayV2CheckoutLanguage.md#es_es)
|
|
15
|
+
- [fr\_FR](internal_.AmazonPayV2CheckoutLanguage.md#fr_fr)
|
|
16
|
+
- [it\_IT](internal_.AmazonPayV2CheckoutLanguage.md#it_it)
|
|
17
|
+
- [ja\_JP](internal_.AmazonPayV2CheckoutLanguage.md#ja_jp)
|
|
18
|
+
|
|
19
|
+
## Enumeration Members
|
|
20
|
+
|
|
21
|
+
### de\_DE
|
|
22
|
+
|
|
23
|
+
• **de\_DE**
|
|
24
|
+
|
|
25
|
+
___
|
|
26
|
+
|
|
27
|
+
### en\_GB
|
|
28
|
+
|
|
29
|
+
• **en\_GB**
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### en\_US
|
|
34
|
+
|
|
35
|
+
• **en\_US**
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### es\_ES
|
|
40
|
+
|
|
41
|
+
• **es\_ES**
|
|
42
|
+
|
|
43
|
+
___
|
|
44
|
+
|
|
45
|
+
### fr\_FR
|
|
46
|
+
|
|
47
|
+
• **fr\_FR**
|
|
48
|
+
|
|
49
|
+
___
|
|
50
|
+
|
|
51
|
+
### it\_IT
|
|
52
|
+
|
|
53
|
+
• **it\_IT**
|
|
54
|
+
|
|
55
|
+
___
|
|
56
|
+
|
|
57
|
+
### ja\_JP
|
|
58
|
+
|
|
59
|
+
• **ja\_JP**
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / AmazonPayV2LedgerCurrency
|
|
2
|
+
|
|
3
|
+
# Enumeration: AmazonPayV2LedgerCurrency
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).AmazonPayV2LedgerCurrency
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Enumeration Members
|
|
10
|
+
|
|
11
|
+
- [EUR](internal_.AmazonPayV2LedgerCurrency.md#eur)
|
|
12
|
+
- [GBP](internal_.AmazonPayV2LedgerCurrency.md#gbp)
|
|
13
|
+
- [JPY](internal_.AmazonPayV2LedgerCurrency.md#jpy)
|
|
14
|
+
- [USD](internal_.AmazonPayV2LedgerCurrency.md#usd)
|
|
15
|
+
|
|
16
|
+
## Enumeration Members
|
|
17
|
+
|
|
18
|
+
### EUR
|
|
19
|
+
|
|
20
|
+
• **EUR**
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### GBP
|
|
25
|
+
|
|
26
|
+
• **GBP**
|
|
27
|
+
|
|
28
|
+
___
|
|
29
|
+
|
|
30
|
+
### JPY
|
|
31
|
+
|
|
32
|
+
• **JPY**
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### USD
|
|
37
|
+
|
|
38
|
+
• **USD**
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / AmazonPayV2PayOptions
|
|
2
|
+
|
|
3
|
+
# Enumeration: AmazonPayV2PayOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).AmazonPayV2PayOptions
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Enumeration Members
|
|
10
|
+
|
|
11
|
+
- [PayAndShip](internal_.AmazonPayV2PayOptions.md#payandship)
|
|
12
|
+
- [PayOnly](internal_.AmazonPayV2PayOptions.md#payonly)
|
|
13
|
+
|
|
14
|
+
## Enumeration Members
|
|
15
|
+
|
|
16
|
+
### PayAndShip
|
|
17
|
+
|
|
18
|
+
• **PayAndShip**
|
|
19
|
+
|
|
20
|
+
Select this product type if you need the buyer's shipping details.
|
|
21
|
+
|
|
22
|
+
___
|
|
23
|
+
|
|
24
|
+
### PayOnly
|
|
25
|
+
|
|
26
|
+
• **PayOnly**
|
|
27
|
+
|
|
28
|
+
Select this product type if you do not need the buyer's shipping details.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / AmazonPayV2Placement
|
|
2
|
+
|
|
3
|
+
# Enumeration: AmazonPayV2Placement
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).AmazonPayV2Placement
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Enumeration Members
|
|
10
|
+
|
|
11
|
+
- [Cart](internal_.AmazonPayV2Placement.md#cart)
|
|
12
|
+
- [Checkout](internal_.AmazonPayV2Placement.md#checkout)
|
|
13
|
+
- [Home](internal_.AmazonPayV2Placement.md#home)
|
|
14
|
+
- [Other](internal_.AmazonPayV2Placement.md#other)
|
|
15
|
+
- [Product](internal_.AmazonPayV2Placement.md#product)
|
|
16
|
+
|
|
17
|
+
## Enumeration Members
|
|
18
|
+
|
|
19
|
+
### Cart
|
|
20
|
+
|
|
21
|
+
• **Cart**
|
|
22
|
+
|
|
23
|
+
Cart review page before buyer starts checkout.
|
|
24
|
+
|
|
25
|
+
___
|
|
26
|
+
|
|
27
|
+
### Checkout
|
|
28
|
+
|
|
29
|
+
• **Checkout**
|
|
30
|
+
|
|
31
|
+
Any page after buyer starts checkout.
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### Home
|
|
36
|
+
|
|
37
|
+
• **Home**
|
|
38
|
+
|
|
39
|
+
Initial or main page.
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### Other
|
|
44
|
+
|
|
45
|
+
• **Other**
|
|
46
|
+
|
|
47
|
+
Any page that doesn't fit the previous descriptions.
|
|
48
|
+
|
|
49
|
+
___
|
|
50
|
+
|
|
51
|
+
### Product
|
|
52
|
+
|
|
53
|
+
• **Product**
|
|
54
|
+
|
|
55
|
+
Product details page.
|