@bigcommerce/checkout-sdk / HostedForm
HostedForm
• new HostedForm(_fields
, _eventListener
, _payloadTransformer
, _eventCallbacks
, _paymentHumanVerificationHandler
)
Name | Type |
---|---|
_fields |
HostedField [] |
_eventListener |
IframeEventListener <HostedInputEventMap , undefined > |
_payloadTransformer |
HostedFormOrderDataTransformer |
_eventCallbacks |
HostedFormEventCallbacks |
_paymentHumanVerificationHandler |
PaymentHumanVerificationHandler |
▸ attach(): Promise
<void
>
Promise
<void
>
HostedFormInterface.attach
▸ detach(): void
void
HostedFormInterface.detach
▸ getBin(): undefined
| string
undefined
| string
HostedFormInterface.getBin
▸ getCardType(): undefined
| string
undefined
| string
HostedFormInterface.getCardType
▸ submit(payload
, additionalActionData?
): Promise
<HostedInputSubmitSuccessEvent
>
Name | Type |
---|---|
payload |
OrderPaymentRequestBody |
additionalActionData? |
PaymentAdditionalAction |
Promise
<HostedInputSubmitSuccessEvent
>
HostedFormInterface.submit
▸ submitStoredCard(payload
): Promise
<void
| HostedInputStoredCardSucceededEvent
>
Name | Type |
---|---|
payload |
Object |
payload.data |
StoredCardHostedFormData |
payload.fields |
StoredCardHostedFormInstrumentFields |
Promise
<void
| HostedInputStoredCardSucceededEvent
>
▸ validate(): Promise
<void
>
Promise
<void
>
HostedFormInterface.validate