@bigcommerce/checkout-sdk / HostedField
• new HostedField(_type
, _containerId
, _placeholder
, _accessibilityLabel
, _styles
, _eventPoster
, _eventListener
, _detachmentObserver
, _cardInstrument?
)
Name | Type |
---|---|
_type |
HostedFieldType |
_containerId |
string |
_placeholder |
string |
_accessibilityLabel |
string |
_styles |
HostedFieldStylesMap |
_eventPoster |
IframeEventPoster <HostedFieldEvent , undefined > |
_eventListener |
IframeEventListener <HostedInputEventMap , undefined > |
_detachmentObserver |
DetachmentObserver |
_cardInstrument? |
CardInstrument |
▸ attach(): Promise
<void
>
Promise
<void
>
▸ detach(): void
void
▸ getType(): HostedFieldType
▸ submitForm(fields
, data
): Promise
<HostedInputSubmitSuccessEvent
>
Name | Type |
---|---|
fields |
HostedFieldType [] |
data |
HostedFormOrderData |
Promise
<HostedInputSubmitSuccessEvent
>
▸ submitStoredCardForm(fields
, data
): Promise
<HostedInputStoredCardSucceededEvent
>
Name | Type |
---|---|
fields |
StoredCardHostedFormInstrumentFields |
data |
StoredCardHostedFormData |
Promise
<HostedInputStoredCardSucceededEvent
>
▸ validateForm(): Promise
<void
>
Promise
<void
>