Skip to content

Latest commit

 

History

History
105 lines (61 loc) · 7.36 KB

CheckoutButtonSelector.md

File metadata and controls

105 lines (61 loc) · 7.36 KB

@bigcommerce/checkout-sdk / CheckoutButtonSelector

Interface: CheckoutButtonSelector

Table of contents

Methods

Methods

getDeinitializeError

getDeinitializeError(methodId?): undefined | Error

Parameters

Name Type
methodId? APPLEPAY | AMAZON_PAY_V2 | BRAINTREE_PAYPAL | BRAINTREE_VENMO | BRAINTREE_PAYPAL_CREDIT | GOOGLEPAY_ADYENV2 | GOOGLEPAY_ADYENV3 | GOOGLEPAY_AUTHORIZENET | GOOGLEPAY_BNZ | GOOGLEPAY_BRAINTREE | GOOGLEPAY_CHECKOUTCOM | GOOGLEPAY_CYBERSOURCEV2 | GOOGLEPAY_ORBITAL | GOOGLEPAY_STRIPE | GOOGLEPAY_STRIPEUPE | GOOGLEPAY_WORLDPAYACCESS | MASTERPASS | PAYPALEXPRESS

Returns

undefined | Error


getInitializeError

getInitializeError(methodId?): undefined | Error

Parameters

Name Type
methodId? APPLEPAY | AMAZON_PAY_V2 | BRAINTREE_PAYPAL | BRAINTREE_VENMO | BRAINTREE_PAYPAL_CREDIT | GOOGLEPAY_ADYENV2 | GOOGLEPAY_ADYENV3 | GOOGLEPAY_AUTHORIZENET | GOOGLEPAY_BNZ | GOOGLEPAY_BRAINTREE | GOOGLEPAY_CHECKOUTCOM | GOOGLEPAY_CYBERSOURCEV2 | GOOGLEPAY_ORBITAL | GOOGLEPAY_STRIPE | GOOGLEPAY_STRIPEUPE | GOOGLEPAY_WORLDPAYACCESS | MASTERPASS | PAYPALEXPRESS

Returns

undefined | Error


getState

getState(): CheckoutButtonState

Returns

CheckoutButtonState


isDeinitializing

isDeinitializing(methodId?): boolean

Parameters

Name Type
methodId? APPLEPAY | AMAZON_PAY_V2 | BRAINTREE_PAYPAL | BRAINTREE_VENMO | BRAINTREE_PAYPAL_CREDIT | GOOGLEPAY_ADYENV2 | GOOGLEPAY_ADYENV3 | GOOGLEPAY_AUTHORIZENET | GOOGLEPAY_BNZ | GOOGLEPAY_BRAINTREE | GOOGLEPAY_CHECKOUTCOM | GOOGLEPAY_CYBERSOURCEV2 | GOOGLEPAY_ORBITAL | GOOGLEPAY_STRIPE | GOOGLEPAY_STRIPEUPE | GOOGLEPAY_WORLDPAYACCESS | MASTERPASS | PAYPALEXPRESS

Returns

boolean


isInitialized

isInitialized(methodId, containerId?): boolean

Parameters

Name Type
methodId CheckoutButtonMethodType
containerId? string

Returns

boolean


isInitializing

isInitializing(methodId?): boolean

Parameters

Name Type
methodId? APPLEPAY | AMAZON_PAY_V2 | BRAINTREE_PAYPAL | BRAINTREE_VENMO | BRAINTREE_PAYPAL_CREDIT | GOOGLEPAY_ADYENV2 | GOOGLEPAY_ADYENV3 | GOOGLEPAY_AUTHORIZENET | GOOGLEPAY_BNZ | GOOGLEPAY_BRAINTREE | GOOGLEPAY_CHECKOUTCOM | GOOGLEPAY_CYBERSOURCEV2 | GOOGLEPAY_ORBITAL | GOOGLEPAY_STRIPE | GOOGLEPAY_STRIPEUPE | GOOGLEPAY_WORLDPAYACCESS | MASTERPASS | PAYPALEXPRESS

Returns

boolean