The following events can be raised by the iOS SDK.

transactionCreated

Returns data about the transaction object when the transaction was successfully created.

{
  "transactionID": "8724fd24-5489-4a5d-90fd-0604df7d3b83",
  "status": "pending",
  "paymentMethodID": "17d57b9a-408d-49b8-9a97-9db382593003"
}

transactionFailed

Returned when the transaction encounters an error.

{
  "transactionID": "8724fd24-5489-4a5d-90fd-0604df7d3b83",
  "status": "pending",
  "paymentMethodID": "17d57b9a-408d-49b8-9a97-9db382593003"
}

cancelled

Returned when the user closes the payment sheet without creating a transaction.

generalError

Returned when the SDK encounters an error.

{
  "Gr4vy Error: Failed to load"
}