Gr4vy Embed accepts an
onEvent parameter that can be used to listen to certain
events emitted from the form.
Currently, we Gr4vy Embed emits the following events.
Returned when the initial input (
options) are incorrectly formatted
Returned when the form updates. Currently this only informs the developer if the form is valid.
Returns a full transaction object when the transaction was successfully created.
Returns a full payment method object when a payment method was selected and submitted in Gr4vy Embed. The method could have been a newly created payment method or one previously stored.
Returned when the form encounters an API error.