Initialize
You can initialize the fields by calling the init()
method. Once this method is called, the sdk will emit the initializing
, initialized
, and/or the init_error
change events.
You can call init()
multiple times in the same context. Each call will trigger a new initializing
, initalized
, and/or init_error
sequence. The fields will also be reloaded each time init()
is called.
Example
Example initializing the hosted fields for a Payment session.
Method Params Object
Payment Token returned from a paymentSessionCreate
mutation. Required when
using a Payment Session type.
Token returned from a createSavePaymentMethodToken
mutation call. Required
when using a Save Payment Method Session type.
The initial active form. This can be either card
or ach
. The active form
determines which fields are loaded.
Configuration for the hosted fields.