@bigcommerce/checkout-sdk 1.308.1 → 1.308.2
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.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 +158 -16
- package/docs/classes/internal_.CartChangedError.md +62 -0
- package/docs/classes/internal_.CheckoutService.md +1528 -0
- package/docs/classes/internal_.CurrencyService.md +56 -0
- package/docs/classes/internal_.EmbeddedCheckout.md +42 -0
- package/docs/classes/internal_.LanguageService.md +103 -0
- package/docs/classes/internal_.RequestError.md +108 -0
- package/docs/classes/internal_.StandardError.md +4 -0
- package/docs/enums/internal_.AdyenV2CardFields.md +31 -0
- package/docs/enums/internal_.AdyenV3CardFields.md +31 -0
- package/docs/enums/internal_.CheckoutIncludes.md +31 -0
- package/docs/enums/internal_.HostedFieldType.md +52 -0
- package/docs/enums/internal_.IconStyle.md +24 -0
- package/docs/enums/internal_.RadiusUnit.md +24 -0
- package/docs/interfaces/internal_.Address.md +4 -0
- package/docs/interfaces/internal_.AddressRequestBody.md +2 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks.md +70 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionCallbacks_2.md +68 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions.md +108 -0
- package/docs/interfaces/internal_.AdyenAdditionalActionOptions_2.md +108 -0
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions.md +35 -0
- package/docs/interfaces/internal_.AdyenBaseCardComponentOptions_2.md +42 -0
- package/docs/interfaces/internal_.AdyenComponent.md +74 -0
- package/docs/interfaces/internal_.AdyenComponentEvents.md +76 -0
- package/docs/interfaces/internal_.AdyenComponentEvents_2.md +76 -0
- package/docs/interfaces/internal_.AdyenComponent_2.md +74 -0
- package/docs/interfaces/internal_.AdyenCreditCardComponentOptions.md +187 -0
- package/docs/interfaces/internal_.AdyenIdealComponentOptions.md +19 -0
- package/docs/interfaces/internal_.AdyenPaymentMethodState.md +23 -0
- package/docs/interfaces/internal_.AdyenPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.AdyenPlaceholderData.md +35 -0
- package/docs/interfaces/internal_.AdyenPlaceholderData_2.md +35 -0
- package/docs/interfaces/internal_.AdyenThreeDS2Options.md +99 -0
- package/docs/interfaces/internal_.AdyenV2PaymentInitializeOptions.md +162 -0
- package/docs/interfaces/internal_.AdyenV2ValidationState.md +59 -0
- package/docs/interfaces/internal_.AdyenV3CreditCardComponentOptions.md +198 -0
- package/docs/interfaces/internal_.AdyenV3PaymentInitializeOptions.md +137 -0
- package/docs/interfaces/internal_.AdyenV3ValidationState.md +59 -0
- package/docs/interfaces/internal_.AmazonPayCustomerInitializeOptions.md +67 -0
- package/docs/interfaces/internal_.AmazonPayOrderReference.md +32 -0
- package/docs/interfaces/internal_.AmazonPayPaymentInitializeOptions.md +102 -0
- package/docs/interfaces/internal_.AmazonPayShippingInitializeOptions.md +87 -0
- package/docs/interfaces/internal_.AmazonPayV2CustomerInitializeOptions.md +26 -0
- package/docs/interfaces/internal_.AmazonPayV2PaymentInitializeOptions.md +42 -0
- package/docs/interfaces/internal_.AmazonPayV2ShippingInitializeOptions.md +28 -0
- package/docs/interfaces/internal_.AmazonPayWidgetError.md +27 -0
- package/docs/interfaces/internal_.ApplePayCustomerInitializeOptions.md +79 -0
- package/docs/interfaces/internal_.ApplePayPaymentInitializeOptions.md +42 -0
- package/docs/interfaces/internal_.BankInstrument.md +114 -0
- package/docs/interfaces/internal_.Banner.md +24 -0
- package/docs/interfaces/internal_.BaseAccountInstrument.md +93 -0
- package/docs/interfaces/internal_.BaseCustomerInitializeOptions.md +237 -0
- package/docs/interfaces/internal_.BaseElementOptions.md +28 -0
- package/docs/interfaces/internal_.BaseElementOptions_2.md +50 -0
- package/docs/interfaces/internal_.BaseIndividualElementOptions.md +69 -0
- package/docs/interfaces/internal_.BaseInstrument.md +60 -0
- package/docs/interfaces/internal_.BasePaymentInitializeOptions.md +376 -0
- package/docs/interfaces/internal_.BillingAddress.md +184 -0
- package/docs/interfaces/internal_.BillingAddressRequestBody.md +155 -0
- package/docs/interfaces/internal_.BlockElementStyles.md +107 -0
- package/docs/interfaces/internal_.BlueSnapV2PaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.BlueSnapV2StyleProps.md +31 -0
- package/docs/interfaces/internal_.BodlEventsPayload.md +9 -0
- package/docs/interfaces/internal_.BodlService.md +172 -0
- package/docs/interfaces/internal_.BodyStyles.md +17 -0
- package/docs/interfaces/internal_.BoltCustomerInitializeOptions.md +32 -0
- package/docs/interfaces/internal_.BoltPaymentInitializeOptions.md +96 -0
- package/docs/interfaces/internal_.BraintreePaymentInitializeOptions.md +91 -0
- package/docs/interfaces/internal_.BraintreeThreeDSecureOptions.md +53 -0
- package/docs/interfaces/internal_.BraintreeVerifyPayload.md +53 -0
- package/docs/interfaces/internal_.BraintreeVisaCheckoutCustomerInitializeOptions.md +37 -0
- package/docs/interfaces/internal_.BraintreeVisaCheckoutPaymentInitializeOptions.md +72 -0
- package/docs/interfaces/internal_.BrowserInfo.md +52 -0
- package/docs/interfaces/internal_.ButtonResponse.md +21 -0
- package/docs/interfaces/internal_.ButtonStyles.md +143 -0
- package/docs/interfaces/internal_.CardCvcElementOptions.md +74 -0
- package/docs/interfaces/internal_.CardDataPaymentMethodState.md +17 -0
- package/docs/interfaces/internal_.CardDataPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.CardElementOptions.md +93 -0
- package/docs/interfaces/internal_.CardExpiryElementOptions.md +74 -0
- package/docs/interfaces/internal_.CardInstrument.md +117 -0
- package/docs/interfaces/internal_.CardNumberElementOptions.md +90 -0
- package/docs/interfaces/internal_.CardPaymentMethodState.md +62 -0
- package/docs/interfaces/internal_.CardPaymentMethodState_2.md +45 -0
- package/docs/interfaces/internal_.CardState.md +42 -0
- package/docs/interfaces/internal_.CardStateErrors.md +9 -0
- package/docs/interfaces/internal_.CardStateErrors_2.md +9 -0
- package/docs/interfaces/internal_.CardState_2.md +42 -0
- package/docs/interfaces/internal_.Cart.md +108 -0
- package/docs/interfaces/internal_.ChasePayCustomerInitializeOptions.md +17 -0
- package/docs/interfaces/internal_.ChasePayInitializeOptions.md +100 -0
- package/docs/interfaces/internal_.CheckableInputStyles.md +177 -0
- package/docs/interfaces/internal_.ChecklistStyles.md +129 -0
- package/docs/interfaces/internal_.Checkout.md +204 -0
- package/docs/interfaces/internal_.CheckoutParams.md +17 -0
- package/docs/interfaces/internal_.CheckoutPayment.md +44 -0
- package/docs/interfaces/internal_.CheckoutPaymentMethodExecutedOptions.md +17 -0
- package/docs/interfaces/internal_.CheckoutRequestBody.md +17 -0
- package/docs/interfaces/internal_.CheckoutSelectors.md +31 -0
- package/docs/interfaces/internal_.CheckoutServiceOptions.md +38 -0
- package/docs/interfaces/internal_.CheckoutSettings.md +203 -0
- package/docs/interfaces/internal_.CheckoutStoreErrorSelector.md +638 -0
- package/docs/interfaces/internal_.CheckoutStoreSelector.md +503 -0
- package/docs/interfaces/internal_.CheckoutStoreStatusSelector.md +760 -0
- package/docs/interfaces/internal_.Consignment.md +73 -0
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithAddress.md +31 -0
- package/docs/interfaces/internal_.ConsignmentAssignmentBaseRequestBodyWithShippingAddress.md +31 -0
- package/docs/interfaces/internal_.ConsignmentCreateRequestBody.md +38 -0
- package/docs/interfaces/internal_.ConsignmentLineItem.md +24 -0
- package/docs/interfaces/internal_.ConsignmentPickupOption.md +17 -0
- package/docs/interfaces/internal_.ConsignmentUpdateRequestBody.md +45 -0
- package/docs/interfaces/internal_.Coordinates.md +24 -0
- package/docs/interfaces/internal_.Country.md +45 -0
- package/docs/interfaces/internal_.Coupon.md +45 -0
- package/docs/interfaces/internal_.CreditCardInstrument.md +87 -0
- package/docs/interfaces/internal_.CreditCardPlaceHolder.md +31 -0
- package/docs/interfaces/internal_.CreditCardPlaceHolder_2.md +31 -0
- package/docs/interfaces/internal_.CssProperties.md +213 -0
- package/docs/interfaces/internal_.CssProperties_2.md +213 -0
- package/docs/interfaces/internal_.Currency.md +38 -0
- package/docs/interfaces/internal_.CustomItem.md +52 -0
- package/docs/interfaces/internal_.Customer.md +93 -0
- package/docs/interfaces/internal_.CustomerAddress.md +184 -0
- package/docs/interfaces/internal_.CustomerCredentials.md +24 -0
- package/docs/interfaces/internal_.CustomerGroup.md +24 -0
- package/docs/interfaces/internal_.CustomerPasswordRequirements.md +38 -0
- package/docs/interfaces/internal_.CustomerRequestOptions.md +62 -0
- package/docs/interfaces/internal_.DigitalItem.md +312 -0
- package/docs/interfaces/internal_.DigitalRiverElementClasses.md +69 -0
- package/docs/interfaces/internal_.DigitalRiverPaymentInitializeOptions.md +148 -0
- package/docs/interfaces/internal_.Discount.md +24 -0
- package/docs/interfaces/internal_.DisplaySettings.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutCompleteEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutError.md +31 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutErrorEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameErrorEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutFrameLoadedEvent.md +24 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutLoadedEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutOptions.md +136 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutSignedOutEvent.md +17 -0
- package/docs/interfaces/internal_.EmbeddedCheckoutStyles.md +143 -0
- package/docs/interfaces/internal_.EmbeddedContentOptions.md +17 -0
- package/docs/interfaces/internal_.ExecutePaymentMethodCheckoutOptions.md +95 -0
- package/docs/interfaces/internal_.FlashMessage.md +31 -0
- package/docs/interfaces/internal_.FormField.md +115 -0
- package/docs/interfaces/internal_.FormFieldItem.md +24 -0
- package/docs/interfaces/internal_.FormFieldOptions.md +31 -0
- package/docs/interfaces/internal_.FormFields.md +31 -0
- package/docs/interfaces/internal_.GatewayOrderPayment.md +110 -0
- package/docs/interfaces/internal_.GiftCertificate.md +45 -0
- package/docs/interfaces/internal_.GiftCertificateItem.md +80 -0
- package/docs/interfaces/internal_.GiftCertificateOrderPayment.md +96 -0
- package/docs/interfaces/{internal_.GooglePayButtonInitializeOptions.md → internal_.GooglePayCustomerInitializeOptions.md} +16 -5
- package/docs/interfaces/internal_.GooglePayPaymentInitializeOptions.md +95 -0
- package/docs/interfaces/internal_.HostedCardFieldOptions.md +37 -0
- package/docs/interfaces/internal_.HostedCardFieldOptionsMap.md +38 -0
- package/docs/interfaces/internal_.HostedFieldStylesMap.md +31 -0
- package/docs/interfaces/internal_.HostedFormOptions.md +116 -0
- package/docs/interfaces/internal_.HostedInputValidateErrorData.md +31 -0
- package/docs/interfaces/internal_.HostedInputValidateErrorDataMap.md +52 -0
- package/docs/interfaces/internal_.HostedInputValidateResults.md +24 -0
- package/docs/interfaces/internal_.HostedInstrument.md +24 -0
- package/docs/interfaces/internal_.HostedStoredCardFieldOptions.md +56 -0
- package/docs/interfaces/internal_.HostedStoredCardFieldOptionsMap.md +24 -0
- package/docs/interfaces/internal_.IbanElementOptions.md +84 -0
- package/docs/interfaces/internal_.IdealElementOptions.md +72 -0
- package/docs/interfaces/internal_.IndividualCardElementOptions.md +38 -0
- package/docs/interfaces/internal_.InitializationStrategy.md +23 -0
- package/docs/interfaces/internal_.InlineElementStyles.md +55 -0
- package/docs/interfaces/internal_.InputDetail.md +82 -0
- package/docs/interfaces/internal_.InputDetail_2.md +82 -0
- package/docs/interfaces/internal_.InputStyles.md +154 -0
- package/docs/interfaces/internal_.Item.md +24 -0
- package/docs/interfaces/internal_.Item_2.md +28 -0
- package/docs/interfaces/internal_.Item_3.md +28 -0
- package/docs/interfaces/internal_.KlarnaLoadResponse.md +30 -0
- package/docs/interfaces/internal_.KlarnaLoadResponse_2.md +30 -0
- package/docs/interfaces/internal_.KlarnaPaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.KlarnaV2PaymentInitializeOptions.md +75 -0
- package/docs/interfaces/internal_.LabelStyles.md +78 -0
- package/docs/interfaces/internal_.LanguageConfig.md +59 -0
- package/docs/interfaces/internal_.LineItem.md +163 -8
- package/docs/interfaces/internal_.LineItemCategory.md +17 -0
- package/docs/interfaces/internal_.LineItemMap.md +38 -0
- package/docs/interfaces/internal_.LineItemOption.md +38 -0
- package/docs/interfaces/internal_.LineItemSocialData.md +38 -0
- package/docs/interfaces/internal_.LinkStyles.md +92 -0
- package/docs/interfaces/internal_.LoadingIndicatorStyles.md +31 -0
- package/docs/interfaces/internal_.Locales.md +9 -0
- package/docs/interfaces/internal_.MasterpassCustomerInitializeOptions.md +19 -0
- package/docs/interfaces/internal_.MasterpassPaymentInitializeOptions.md +37 -0
- package/docs/interfaces/internal_.MolliePaymentInitializeOptions.md +126 -0
- package/docs/interfaces/internal_.MonerisPaymentInitializeOptions.md +59 -0
- package/docs/interfaces/internal_.MonerisStylingProps.md +82 -0
- package/docs/interfaces/internal_.NonceGenerationError.md +31 -0
- package/docs/interfaces/internal_.NonceInstrument.md +38 -0
- package/docs/interfaces/internal_.Option_2.md +24 -0
- package/docs/interfaces/internal_.OptionsResponse.md +79 -0
- package/docs/interfaces/internal_.OpyPaymentInitializeOptions.md +40 -0
- package/docs/interfaces/internal_.Order.md +199 -0
- package/docs/interfaces/internal_.OrderConsignment.md +17 -0
- package/docs/interfaces/internal_.OrderPayment.md +60 -0
- package/docs/interfaces/internal_.OrderPaymentRequestBody.md +41 -0
- package/docs/interfaces/internal_.OrderRequestBody.md +35 -0
- package/docs/interfaces/internal_.OrderShippingConsignment.md +220 -0
- package/docs/interfaces/internal_.PasswordRequirements.md +38 -0
- package/docs/interfaces/internal_.PayPalInstrument.md +93 -0
- package/docs/interfaces/internal_.PaymentMethod.md +100 -0
- package/docs/interfaces/internal_.PaymentMethodConfig.md +122 -0
- package/docs/interfaces/internal_.PaymentRequestOptions.md +69 -0
- package/docs/interfaces/internal_.PaymentSettings.md +24 -0
- package/docs/interfaces/internal_.PaypalCommerceCreditCardPaymentInitializeOptions.md +92 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldCardTypeChangeEventData.md +17 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldKeyboardEventData.md +17 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldOptions.md +30 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldStylesMap.md +31 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateErrorData.md +31 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldValidateEventData.md +35 -0
- package/docs/interfaces/internal_.PaypalCommerceFormFieldsMap.md +38 -0
- package/docs/interfaces/internal_.PaypalCommerceFormOptions.md +150 -0
- package/docs/interfaces/internal_.PaypalCommercePaymentInitializeOptions.md +188 -0
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldOptions.md +45 -0
- package/docs/interfaces/internal_.PaypalCommerceStoredCardFieldsMap.md +24 -0
- package/docs/interfaces/internal_.PaypalExpressPaymentInitializeOptions.md +38 -0
- package/docs/interfaces/internal_.PaypalFieldsStyleOptions.md +48 -0
- package/docs/interfaces/internal_.PhysicalItem.md +313 -0
- package/docs/interfaces/internal_.PickupMethod.md +45 -0
- package/docs/interfaces/internal_.PickupOptionResult.md +17 -0
- package/docs/interfaces/internal_.Promotion.md +17 -0
- package/docs/interfaces/internal_.Radius.md +24 -0
- package/docs/interfaces/internal_.Region.md +24 -0
- package/docs/interfaces/internal_.RequestOptions.md +5 -1
- package/docs/interfaces/internal_.SearchArea.md +24 -0
- package/docs/interfaces/internal_.SepaPlaceHolder.md +24 -0
- package/docs/interfaces/internal_.SepaPlaceHolder_2.md +24 -0
- package/docs/interfaces/internal_.ShippingInitializeOptions.md +100 -0
- package/docs/interfaces/internal_.ShippingOption.md +66 -0
- package/docs/interfaces/internal_.ShippingRequestOptions.md +67 -0
- package/docs/interfaces/internal_.ShopperConfig.md +31 -0
- package/docs/interfaces/internal_.ShopperCurrency.md +96 -0
- package/docs/interfaces/internal_.SignInEmail.md +24 -0
- package/docs/interfaces/internal_.SignInEmailRequestBody.md +24 -0
- package/docs/interfaces/internal_.SpamProtectionOptions.md +27 -0
- package/docs/interfaces/internal_.SquareFormElement.md +30 -0
- package/docs/interfaces/internal_.SquarePaymentInitializeOptions.md +133 -0
- package/docs/interfaces/internal_.StepStyles.md +122 -0
- package/docs/interfaces/internal_.StepTracker.md +66 -0
- package/docs/interfaces/internal_.StepTrackerConfig.md +17 -0
- package/docs/interfaces/internal_.StoreConfig.md +117 -0
- package/docs/interfaces/internal_.StoreCurrency.md +58 -0
- package/docs/interfaces/internal_.StoreLinks.md +59 -0
- package/docs/interfaces/internal_.StoreProfile.md +73 -0
- package/docs/interfaces/internal_.StripeCustomerEvent.md +76 -0
- package/docs/interfaces/internal_.StripeElementCSSProperties.md +172 -0
- package/docs/interfaces/internal_.StripeElementClasses.md +65 -0
- package/docs/interfaces/internal_.StripeElementStyle.md +46 -0
- package/docs/interfaces/internal_.StripeElementStyleVariant.md +289 -0
- package/docs/interfaces/internal_.StripeEvent.md +39 -0
- package/docs/interfaces/internal_.StripeShippingEvent.md +76 -0
- package/docs/interfaces/internal_.StripeUPECustomerInitializeOptions.md +94 -0
- package/docs/interfaces/internal_.StripeUPEPaymentInitializeOptions.md +72 -0
- package/docs/interfaces/internal_.StripeUPEShippingInitializeOptions.md +109 -0
- package/docs/interfaces/internal_.StripeV3PaymentInitializeOptions.md +78 -0
- package/docs/interfaces/internal_.StyleOptions.md +46 -0
- package/docs/interfaces/internal_.StyleOptions_2.md +46 -0
- package/docs/interfaces/internal_.SubInputDetail.md +64 -0
- package/docs/interfaces/internal_.SubInputDetail_2.md +64 -0
- package/docs/interfaces/internal_.Subscriptions.md +31 -0
- package/docs/interfaces/internal_.Tax.md +24 -0
- package/docs/interfaces/internal_.TextInputStyles.md +177 -0
- package/docs/interfaces/internal_.ThreeDSecure.md +52 -0
- package/docs/interfaces/internal_.ThreeDSecureToken.md +17 -0
- package/docs/interfaces/internal_.TranslationData.md +9 -0
- package/docs/interfaces/internal_.Translations.md +9 -0
- package/docs/interfaces/internal_.UnknownObject.md +9 -0
- package/docs/interfaces/internal_.VaultedInstrument.md +31 -0
- package/docs/interfaces/internal_.WechatDataPaymentMethodState.md +17 -0
- package/docs/interfaces/internal_.WechatDataPaymentMethodState_2.md +17 -0
- package/docs/interfaces/internal_.WechatState.md +17 -0
- package/docs/interfaces/internal_.WechatState_2.md +17 -0
- package/docs/interfaces/internal_.WithAccountCreation.md +17 -0
- package/docs/interfaces/internal_.WithAdyenV2PaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithAdyenV3PaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithApplePayCustomerInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithApplePayPaymentInitializeOptions.md +20 -0
- package/docs/interfaces/internal_.WithCheckoutcomFawryInstrument.md +24 -0
- package/docs/interfaces/internal_.WithCheckoutcomSEPAInstrument.md +24 -0
- package/docs/interfaces/internal_.WithCheckoutcomiDealInstrument.md +17 -0
- package/docs/interfaces/internal_.WithDocumentInstrument.md +17 -0
- package/docs/interfaces/internal_.WithMollieIssuerInstrument.md +24 -0
- package/docs/interfaces/internal_.WorldpayAccessPaymentInitializeOptions.md +32 -0
- package/docs/interfaces/internal_.ZipCodeElementOptions.md +17 -0
- package/docs/modules/internal_.md +515 -51
- package/package.json +1 -1
- package/docs/classes/internal_.CheckoutButtonErrorSelector.md +0 -54
- package/docs/classes/internal_.CheckoutButtonInitializer.md +0 -179
- package/docs/classes/internal_.CheckoutButtonStatusSelector.md +0 -54
- package/docs/enums/internal_.AmazonPayV2ButtonColor.md +0 -31
- package/docs/enums/internal_.AmazonPayV2CheckoutLanguage.md +0 -59
- package/docs/enums/internal_.AmazonPayV2LedgerCurrency.md +0 -38
- package/docs/enums/internal_.AmazonPayV2PayOptions.md +0 -28
- package/docs/enums/internal_.AmazonPayV2Placement.md +0 -55
- package/docs/enums/internal_.CheckoutButtonMethodType.md +0 -164
- package/docs/enums/internal_.PaypalButtonStyleColorOption.md +0 -38
- package/docs/enums/internal_.PaypalButtonStyleLabelOption.md +0 -45
- package/docs/enums/internal_.PaypalButtonStyleLayoutOption.md +0 -24
- package/docs/enums/internal_.PaypalButtonStyleShapeOption.md +0 -24
- package/docs/enums/internal_.PaypalButtonStyleSizeOption.md +0 -38
- package/docs/enums/internal_.StyleButtonColor.md +0 -45
- package/docs/enums/internal_.StyleButtonLabel.md +0 -45
- package/docs/enums/internal_.StyleButtonLayout.md +0 -24
- package/docs/enums/internal_.StyleButtonShape.md +0 -24
- package/docs/interfaces/internal_.AmazonPayV2ButtonConfig.md +0 -82
- package/docs/interfaces/internal_.AmazonPayV2ButtonParams.md +0 -117
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSession.md +0 -37
- package/docs/interfaces/internal_.AmazonPayV2CheckoutSessionConfig.md +0 -38
- package/docs/interfaces/internal_.AmazonPayV2NewButtonParams.md +0 -139
- package/docs/interfaces/internal_.AmazonPayV2Price.md +0 -28
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions.md +0 -40
- package/docs/interfaces/internal_.ApplePayButtonInitializeOptions_2.md +0 -40
- package/docs/interfaces/internal_.BaseCheckoutButtonInitializeOptions.md +0 -291
- package/docs/interfaces/internal_.BraintreeError.md +0 -37
- package/docs/interfaces/internal_.BraintreePaypalButtonInitializeOptions.md +0 -122
- package/docs/interfaces/internal_.BraintreePaypalCreditButtonInitializeOptions.md +0 -113
- package/docs/interfaces/internal_.BraintreeVenmoButtonInitializeOptions.md +0 -56
- package/docs/interfaces/internal_.BuyNowCartRequestBody.md +0 -26
- package/docs/interfaces/internal_.CheckoutButtonInitializerOptions.md +0 -24
- package/docs/interfaces/internal_.CheckoutButtonOptions.md +0 -57
- package/docs/interfaces/internal_.CheckoutButtonSelectors.md +0 -24
- package/docs/interfaces/internal_.PaypalButtonInitializeOptions.md +0 -78
- package/docs/interfaces/internal_.PaypalButtonStyleOptions.md +0 -66
- package/docs/interfaces/internal_.PaypalButtonStyleOptions_2.md +0 -69
- package/docs/interfaces/internal_.PaypalCommerceAlternativeMethodsButtonOptions.md +0 -61
- package/docs/interfaces/internal_.PaypalCommerceButtonInitializeOptions.md +0 -68
- package/docs/interfaces/internal_.PaypalCommerceCreditButtonInitializeOptions.md +0 -77
- package/docs/interfaces/internal_.PaypalCommerceInlineCheckoutButtonInitializeOptions.md +0 -58
- package/docs/interfaces/internal_.PaypalCommerceVenmoButtonInitializeOptions.md +0 -52
- package/docs/interfaces/internal_.WithApplePayButtonInitializeOptions.md +0 -17
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalCommerceFormOptions
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalCommerceFormOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalCommerceFormOptions
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [fields](internal_.PaypalCommerceFormOptions.md#fields)
|
|
12
|
+
- [styles](internal_.PaypalCommerceFormOptions.md#styles)
|
|
13
|
+
|
|
14
|
+
### Methods
|
|
15
|
+
|
|
16
|
+
- [onBlur](internal_.PaypalCommerceFormOptions.md#onblur)
|
|
17
|
+
- [onCardTypeChange](internal_.PaypalCommerceFormOptions.md#oncardtypechange)
|
|
18
|
+
- [onEnter](internal_.PaypalCommerceFormOptions.md#onenter)
|
|
19
|
+
- [onFocus](internal_.PaypalCommerceFormOptions.md#onfocus)
|
|
20
|
+
- [onValidate](internal_.PaypalCommerceFormOptions.md#onvalidate)
|
|
21
|
+
|
|
22
|
+
## Properties
|
|
23
|
+
|
|
24
|
+
### fields
|
|
25
|
+
|
|
26
|
+
• **fields**: [`PaypalCommerceFormFieldsMap`](internal_.PaypalCommerceFormFieldsMap.md) \| [`PaypalCommerceStoredCardFieldsMap`](internal_.PaypalCommerceStoredCardFieldsMap.md)
|
|
27
|
+
|
|
28
|
+
Containers for fields can be to present in one set of values
|
|
29
|
+
|
|
30
|
+
```js
|
|
31
|
+
{ cardNumber: { containerId: 'card-number' },
|
|
32
|
+
cardName: { containerId: 'card-name' },
|
|
33
|
+
cardExpiry: { containerId: 'card-expiry' },
|
|
34
|
+
cardCode: { containerId: 'card-code' }, }
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or in another set of values.
|
|
38
|
+
|
|
39
|
+
```js
|
|
40
|
+
{ cardCodeVerification: { containerId: 'card-number' },
|
|
41
|
+
cardNumberVerification: { containerId: 'card-name' }, }
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### styles
|
|
47
|
+
|
|
48
|
+
• `Optional` **styles**: [`PaypalCommerceFormFieldStylesMap`](internal_.PaypalCommerceFormFieldStylesMap.md)
|
|
49
|
+
|
|
50
|
+
Styles for inputs. Change the width, height and other styling.
|
|
51
|
+
|
|
52
|
+
```js
|
|
53
|
+
default: { color: '#000' },
|
|
54
|
+
error: { color: '#f00' },
|
|
55
|
+
focus: { color: '#0f0' }
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Methods
|
|
59
|
+
|
|
60
|
+
### onBlur
|
|
61
|
+
|
|
62
|
+
▸ `Optional` **onBlur**(`data`): `void`
|
|
63
|
+
|
|
64
|
+
A callback that gets called when a field loses focus.
|
|
65
|
+
|
|
66
|
+
#### Parameters
|
|
67
|
+
|
|
68
|
+
| Name | Type |
|
|
69
|
+
| :------ | :------ |
|
|
70
|
+
| `data` | [`PaypalCommerceFormFieldKeyboardEventData`](internal_.PaypalCommerceFormFieldKeyboardEventData.md) |
|
|
71
|
+
|
|
72
|
+
#### Returns
|
|
73
|
+
|
|
74
|
+
`void`
|
|
75
|
+
|
|
76
|
+
___
|
|
77
|
+
|
|
78
|
+
### onCardTypeChange
|
|
79
|
+
|
|
80
|
+
▸ `Optional` **onCardTypeChange**(`data`): `void`
|
|
81
|
+
|
|
82
|
+
A callback that gets called when activity within
|
|
83
|
+
the number field has changed such that the possible
|
|
84
|
+
card type has changed.
|
|
85
|
+
|
|
86
|
+
#### Parameters
|
|
87
|
+
|
|
88
|
+
| Name | Type |
|
|
89
|
+
| :------ | :------ |
|
|
90
|
+
| `data` | [`PaypalCommerceFormFieldCardTypeChangeEventData`](internal_.PaypalCommerceFormFieldCardTypeChangeEventData.md) |
|
|
91
|
+
|
|
92
|
+
#### Returns
|
|
93
|
+
|
|
94
|
+
`void`
|
|
95
|
+
|
|
96
|
+
___
|
|
97
|
+
|
|
98
|
+
### onEnter
|
|
99
|
+
|
|
100
|
+
▸ `Optional` **onEnter**(`data`): `void`
|
|
101
|
+
|
|
102
|
+
A callback that gets called when the user requests submission
|
|
103
|
+
of an input field, by pressing the Enter or Return key
|
|
104
|
+
on their keyboard, or mobile equivalent.
|
|
105
|
+
|
|
106
|
+
#### Parameters
|
|
107
|
+
|
|
108
|
+
| Name | Type |
|
|
109
|
+
| :------ | :------ |
|
|
110
|
+
| `data` | [`PaypalCommerceFormFieldKeyboardEventData`](internal_.PaypalCommerceFormFieldKeyboardEventData.md) |
|
|
111
|
+
|
|
112
|
+
#### Returns
|
|
113
|
+
|
|
114
|
+
`void`
|
|
115
|
+
|
|
116
|
+
___
|
|
117
|
+
|
|
118
|
+
### onFocus
|
|
119
|
+
|
|
120
|
+
▸ `Optional` **onFocus**(`data`): `void`
|
|
121
|
+
|
|
122
|
+
A callback that gets called when a field gains focus.
|
|
123
|
+
|
|
124
|
+
#### Parameters
|
|
125
|
+
|
|
126
|
+
| Name | Type |
|
|
127
|
+
| :------ | :------ |
|
|
128
|
+
| `data` | [`PaypalCommerceFormFieldKeyboardEventData`](internal_.PaypalCommerceFormFieldKeyboardEventData.md) |
|
|
129
|
+
|
|
130
|
+
#### Returns
|
|
131
|
+
|
|
132
|
+
`void`
|
|
133
|
+
|
|
134
|
+
___
|
|
135
|
+
|
|
136
|
+
### onValidate
|
|
137
|
+
|
|
138
|
+
▸ `Optional` **onValidate**(`data`): `void`
|
|
139
|
+
|
|
140
|
+
A callback that gets called when the validity of a field has changed.
|
|
141
|
+
|
|
142
|
+
#### Parameters
|
|
143
|
+
|
|
144
|
+
| Name | Type |
|
|
145
|
+
| :------ | :------ |
|
|
146
|
+
| `data` | [`PaypalCommerceFormFieldValidateEventData`](internal_.PaypalCommerceFormFieldValidateEventData.md) |
|
|
147
|
+
|
|
148
|
+
#### Returns
|
|
149
|
+
|
|
150
|
+
`void`
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalCommercePaymentInitializeOptions
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalCommercePaymentInitializeOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalCommercePaymentInitializeOptions
|
|
6
|
+
|
|
7
|
+
A set of options that are required to initialize the PayPal Commerce payment
|
|
8
|
+
method for presenting its PayPal button.
|
|
9
|
+
|
|
10
|
+
Please note that the minimum version of checkout-sdk is 1.100
|
|
11
|
+
|
|
12
|
+
Also, PayPal (also known as PayPal Commerce Platform) requires specific options to initialize the PayPal Smart Payment Button on checkout page that substitutes a standard submit button
|
|
13
|
+
```html
|
|
14
|
+
<!-- This is where the PayPal button will be inserted -->
|
|
15
|
+
<div id="container"></div>
|
|
16
|
+
<!-- This is where the PayPal alternative payment methods fields will be inserted. -->
|
|
17
|
+
<div id="apm-fields-container"></div>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
service.initializePayment({
|
|
22
|
+
methodId: 'paypalcommerce',
|
|
23
|
+
paypalcommerce: {
|
|
24
|
+
container: '#container',
|
|
25
|
+
apmFieldsContainer: '#apm-fields-container',
|
|
26
|
+
apmFieldsStyles: {
|
|
27
|
+
base: {
|
|
28
|
+
backgroundColor: 'transparent',
|
|
29
|
+
},
|
|
30
|
+
input: {
|
|
31
|
+
backgroundColor: 'white',
|
|
32
|
+
fontSize: '1rem',
|
|
33
|
+
color: '#333',
|
|
34
|
+
borderColor: '#d9d9d9',
|
|
35
|
+
borderRadius: '4px',
|
|
36
|
+
borderWidth: '1px',
|
|
37
|
+
padding: '1rem',
|
|
38
|
+
},
|
|
39
|
+
invalid: {
|
|
40
|
+
color: '#ed6a6a',
|
|
41
|
+
},
|
|
42
|
+
active: {
|
|
43
|
+
color: '#4496f6',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
clientId: 'YOUR_CLIENT_ID',
|
|
47
|
+
// Callback for submitting payment form that gets called when a buyer approves PayPal payment
|
|
48
|
+
submitForm: () => {
|
|
49
|
+
// Example function
|
|
50
|
+
this.submitOrder(
|
|
51
|
+
{
|
|
52
|
+
payment: { methodId: 'paypalcommerce', }
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
},
|
|
56
|
+
// Callback is used to define the state of the payment form, validate if it is applicable for submit.
|
|
57
|
+
onValidate: (resolve, reject) => {
|
|
58
|
+
// Example function
|
|
59
|
+
const isValid = this.validatePaymentForm();
|
|
60
|
+
if (isValid) {
|
|
61
|
+
return resolve();
|
|
62
|
+
}
|
|
63
|
+
return reject();
|
|
64
|
+
},
|
|
65
|
+
// Callback that is called right before render of a Smart Payment Button. It gets called when a buyer is eligible for use of the particular PayPal method. This callback can be used to hide the standard submit button.
|
|
66
|
+
onRenderButton: () => {
|
|
67
|
+
// Example function
|
|
68
|
+
this.hidePaymentSubmitButton();
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Table of contents
|
|
75
|
+
|
|
76
|
+
### Properties
|
|
77
|
+
|
|
78
|
+
- [apmFieldsContainer](internal_.PaypalCommercePaymentInitializeOptions.md#apmfieldscontainer)
|
|
79
|
+
- [apmFieldsStyles](internal_.PaypalCommercePaymentInitializeOptions.md#apmfieldsstyles)
|
|
80
|
+
- [clientId](internal_.PaypalCommercePaymentInitializeOptions.md#clientid)
|
|
81
|
+
- [container](internal_.PaypalCommercePaymentInitializeOptions.md#container)
|
|
82
|
+
|
|
83
|
+
### Methods
|
|
84
|
+
|
|
85
|
+
- [onError](internal_.PaypalCommercePaymentInitializeOptions.md#onerror)
|
|
86
|
+
- [onRenderButton](internal_.PaypalCommercePaymentInitializeOptions.md#onrenderbutton)
|
|
87
|
+
- [onValidate](internal_.PaypalCommercePaymentInitializeOptions.md#onvalidate)
|
|
88
|
+
- [submitForm](internal_.PaypalCommercePaymentInitializeOptions.md#submitform)
|
|
89
|
+
|
|
90
|
+
## Properties
|
|
91
|
+
|
|
92
|
+
### apmFieldsContainer
|
|
93
|
+
|
|
94
|
+
• `Optional` **apmFieldsContainer**: `string`
|
|
95
|
+
|
|
96
|
+
The CSS selector of a container where the alternative payment methods fields widget should be inserted into.
|
|
97
|
+
It's necessary to specify this parameter when using Alternative Payment Methods.
|
|
98
|
+
Without it alternative payment methods will not work.
|
|
99
|
+
|
|
100
|
+
___
|
|
101
|
+
|
|
102
|
+
### apmFieldsStyles
|
|
103
|
+
|
|
104
|
+
• `Optional` **apmFieldsStyles**: [`PaypalFieldsStyleOptions`](internal_.PaypalFieldsStyleOptions.md)
|
|
105
|
+
|
|
106
|
+
Object with styles to customize alternative payment methods fields.
|
|
107
|
+
|
|
108
|
+
___
|
|
109
|
+
|
|
110
|
+
### clientId
|
|
111
|
+
|
|
112
|
+
• **clientId**: `string`
|
|
113
|
+
|
|
114
|
+
The Client ID of the Paypal App
|
|
115
|
+
|
|
116
|
+
___
|
|
117
|
+
|
|
118
|
+
### container
|
|
119
|
+
|
|
120
|
+
• **container**: `string`
|
|
121
|
+
|
|
122
|
+
The CSS selector of a container where the payment widget should be inserted into.
|
|
123
|
+
|
|
124
|
+
## Methods
|
|
125
|
+
|
|
126
|
+
### onError
|
|
127
|
+
|
|
128
|
+
▸ `Optional` **onError**(`error`): `void`
|
|
129
|
+
|
|
130
|
+
A callback for displaying error popup. This callback requires error object as parameter.
|
|
131
|
+
|
|
132
|
+
#### Parameters
|
|
133
|
+
|
|
134
|
+
| Name | Type |
|
|
135
|
+
| :------ | :------ |
|
|
136
|
+
| `error` | `Error` |
|
|
137
|
+
|
|
138
|
+
#### Returns
|
|
139
|
+
|
|
140
|
+
`void`
|
|
141
|
+
|
|
142
|
+
___
|
|
143
|
+
|
|
144
|
+
### onRenderButton
|
|
145
|
+
|
|
146
|
+
▸ `Optional` **onRenderButton**(): `void`
|
|
147
|
+
|
|
148
|
+
A callback right before render Smart Payment Button that gets called when
|
|
149
|
+
Smart Payment Button is eligible. This callback can be used to hide the standard submit button.
|
|
150
|
+
|
|
151
|
+
#### Returns
|
|
152
|
+
|
|
153
|
+
`void`
|
|
154
|
+
|
|
155
|
+
___
|
|
156
|
+
|
|
157
|
+
### onValidate
|
|
158
|
+
|
|
159
|
+
▸ **onValidate**(`resolve`, `reject`): `Promise`<`void`\>
|
|
160
|
+
|
|
161
|
+
A callback that gets called when a buyer click on Smart Payment Button
|
|
162
|
+
and should validate payment form.
|
|
163
|
+
|
|
164
|
+
#### Parameters
|
|
165
|
+
|
|
166
|
+
| Name | Type | Description |
|
|
167
|
+
| :------ | :------ | :------ |
|
|
168
|
+
| `resolve` | () => `void` | A function, that gets called if form is valid. |
|
|
169
|
+
| `reject` | () => `void` | A function, that gets called if form is not valid. |
|
|
170
|
+
|
|
171
|
+
#### Returns
|
|
172
|
+
|
|
173
|
+
`Promise`<`void`\>
|
|
174
|
+
|
|
175
|
+
reject() or resolve()
|
|
176
|
+
|
|
177
|
+
___
|
|
178
|
+
|
|
179
|
+
### submitForm
|
|
180
|
+
|
|
181
|
+
▸ **submitForm**(): `void`
|
|
182
|
+
|
|
183
|
+
A callback for submitting payment form that gets called
|
|
184
|
+
when buyer approved PayPal account.
|
|
185
|
+
|
|
186
|
+
#### Returns
|
|
187
|
+
|
|
188
|
+
`void`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalCommerceStoredCardFieldOptions
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalCommerceStoredCardFieldOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalCommerceStoredCardFieldOptions
|
|
6
|
+
|
|
7
|
+
## Hierarchy
|
|
8
|
+
|
|
9
|
+
- [`PaypalCommerceFormFieldOptions`](internal_.PaypalCommerceFormFieldOptions.md)
|
|
10
|
+
|
|
11
|
+
↳ **`PaypalCommerceStoredCardFieldOptions`**
|
|
12
|
+
|
|
13
|
+
## Table of contents
|
|
14
|
+
|
|
15
|
+
### Properties
|
|
16
|
+
|
|
17
|
+
- [containerId](internal_.PaypalCommerceStoredCardFieldOptions.md#containerid)
|
|
18
|
+
- [instrumentId](internal_.PaypalCommerceStoredCardFieldOptions.md#instrumentid)
|
|
19
|
+
- [placeholder](internal_.PaypalCommerceStoredCardFieldOptions.md#placeholder)
|
|
20
|
+
|
|
21
|
+
## Properties
|
|
22
|
+
|
|
23
|
+
### containerId
|
|
24
|
+
|
|
25
|
+
• **containerId**: `string`
|
|
26
|
+
|
|
27
|
+
#### Inherited from
|
|
28
|
+
|
|
29
|
+
[PaypalCommerceFormFieldOptions](internal_.PaypalCommerceFormFieldOptions.md).[containerId](internal_.PaypalCommerceFormFieldOptions.md#containerid)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### instrumentId
|
|
34
|
+
|
|
35
|
+
• **instrumentId**: `string`
|
|
36
|
+
|
|
37
|
+
___
|
|
38
|
+
|
|
39
|
+
### placeholder
|
|
40
|
+
|
|
41
|
+
• `Optional` **placeholder**: `string`
|
|
42
|
+
|
|
43
|
+
#### Inherited from
|
|
44
|
+
|
|
45
|
+
[PaypalCommerceFormFieldOptions](internal_.PaypalCommerceFormFieldOptions.md).[placeholder](internal_.PaypalCommerceFormFieldOptions.md#placeholder)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalCommerceStoredCardFieldsMap
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalCommerceStoredCardFieldsMap
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalCommerceStoredCardFieldsMap
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [cardCodeVerification](internal_.PaypalCommerceStoredCardFieldsMap.md#cardcodeverification)
|
|
12
|
+
- [cardNumberVerification](internal_.PaypalCommerceStoredCardFieldsMap.md#cardnumberverification)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### cardCodeVerification
|
|
17
|
+
|
|
18
|
+
• `Optional` **cardCodeVerification**: [`PaypalCommerceStoredCardFieldOptions`](internal_.PaypalCommerceStoredCardFieldOptions.md)
|
|
19
|
+
|
|
20
|
+
___
|
|
21
|
+
|
|
22
|
+
### cardNumberVerification
|
|
23
|
+
|
|
24
|
+
• `Optional` **cardNumberVerification**: [`PaypalCommerceStoredCardFieldOptions`](internal_.PaypalCommerceStoredCardFieldOptions.md)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalExpressPaymentInitializeOptions
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalExpressPaymentInitializeOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalExpressPaymentInitializeOptions
|
|
6
|
+
|
|
7
|
+
A set of options that are required to initialize the PayPal Express payment
|
|
8
|
+
method.
|
|
9
|
+
|
|
10
|
+
```js
|
|
11
|
+
service.initializePayment({
|
|
12
|
+
methodId: 'paypalexpress',
|
|
13
|
+
});
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
An additional flag can be passed in to always start the payment flow through
|
|
17
|
+
a redirect rather than a popup.
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
service.initializePayment({
|
|
21
|
+
methodId: 'paypalexpress',
|
|
22
|
+
paypalexpress: {
|
|
23
|
+
useRedirectFlow: true,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Table of contents
|
|
29
|
+
|
|
30
|
+
### Properties
|
|
31
|
+
|
|
32
|
+
- [useRedirectFlow](internal_.PaypalExpressPaymentInitializeOptions.md#useredirectflow)
|
|
33
|
+
|
|
34
|
+
## Properties
|
|
35
|
+
|
|
36
|
+
### useRedirectFlow
|
|
37
|
+
|
|
38
|
+
• `Optional` **useRedirectFlow**: `boolean`
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[@bigcommerce/checkout-sdk](../README.md) / [<internal\>](../modules/internal_.md) / PaypalFieldsStyleOptions
|
|
2
|
+
|
|
3
|
+
# Interface: PaypalFieldsStyleOptions
|
|
4
|
+
|
|
5
|
+
[<internal>](../modules/internal_.md).PaypalFieldsStyleOptions
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
### Properties
|
|
10
|
+
|
|
11
|
+
- [rules](internal_.PaypalFieldsStyleOptions.md#rules)
|
|
12
|
+
- [variables](internal_.PaypalFieldsStyleOptions.md#variables)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### rules
|
|
17
|
+
|
|
18
|
+
• `Optional` **rules**: `Object`
|
|
19
|
+
|
|
20
|
+
#### Index signature
|
|
21
|
+
|
|
22
|
+
▪ [key: `string`]: `any`
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### variables
|
|
27
|
+
|
|
28
|
+
• `Optional` **variables**: `Object`
|
|
29
|
+
|
|
30
|
+
#### Type declaration
|
|
31
|
+
|
|
32
|
+
| Name | Type |
|
|
33
|
+
| :------ | :------ |
|
|
34
|
+
| `borderColor?` | `string` |
|
|
35
|
+
| `borderFocusColor?` | `string` |
|
|
36
|
+
| `borderRadius?` | `string` |
|
|
37
|
+
| `borderWidth?` | `string` |
|
|
38
|
+
| `colorBackground?` | `string` |
|
|
39
|
+
| `colorDanger?` | `string` |
|
|
40
|
+
| `colorInfo?` | `string` |
|
|
41
|
+
| `colorTextPlaceholder?` | `string` |
|
|
42
|
+
| `fontFamily?` | `string` |
|
|
43
|
+
| `fontSizeBase?` | `string` |
|
|
44
|
+
| `fontSizeLg?` | `string` |
|
|
45
|
+
| `fontSizeM?` | `string` |
|
|
46
|
+
| `fontSizeSm?` | `string` |
|
|
47
|
+
| `spacingUnit?` | `string` |
|
|
48
|
+
| `textColor?` | `string` |
|