Name | Type | Description |
---|---|---|
env | string | The Method environment with which the element with interact with. Options: dev, sandbox, or production. See Elements Environments |
onEvent | Function | A callback invoked with event, a native MessageEvent, when any event is triggered by the element. |
onSuccess | Function | A callback invoked with payload when an element’s flow has successfully been completed. See the success event |
onError | Function | A callback invoked with error when an error is raised by the element. See the error event. |
onExit | Function | A callback invoked with payload when an element exits. See the exit event. |
onOpen | Function | A callback invoked with payload when an element is successfully launched. See the open event. |