Skip to content

Latest commit

 

History

History
59 lines (48 loc) · 1.84 KB

PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions.md

File metadata and controls

59 lines (48 loc) · 1.84 KB

@bigcommerce/checkout-sdk / PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions

Interface: PayPalCommerceAcceleratedCheckoutCustomerInitializeOptions

A set of options that are optional to initialize the PayPalCommerce Accelerated Checkout customer strategy that are responsible for PayPalCommerce Accelerated Checkout components styling and initialization

service.initializeCustomer({
    methodId: 'paypalcommerceacceleratedcheckout',
    paypalcommerceacceleratedcheckout: {
        styles: {
             root: {
                 backgroundColorPrimary: 'transparent',
                 errorColor: '#C40B0B',
                 fontFamily: 'Montserrat, Helvetica, Arial, sans-serif',
             },
             input: {
                 borderRadius: '0.25rem',
                 borderColor: '#9E9E9E',
                 focusBorderColor: '#4496F6',
             },
             toggle: {
                 colorPrimary: '#0F005E',
                 colorSecondary: '#ffffff',
             },
             text: {
                 body: {
                     color: '#222222',
                     fontSize: '1rem',
                 },
                 caption: {
                     color: '#515151',
                     fontSize: '0.875rem',
                 },
             },
             branding: 'light',
        },
    },
});

Table of contents

Properties

Properties

styles

Optional styles: PayPalCommerceConnectStylesOption

Is a stylisation options for customizing PayPal Connect components

Note: the styles for all PayPalCommerce Accelerated Checkout strategies should be the same, because they will be provided to PayPal library only for the first strategy initialization no matter what strategy was initialised first