Android SDK
Android events
The following events can be raised by the Android SDK.
Gr4vyResult.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"
}
Gr4vyEvent.TransactionFailed
Returned when the transaction encounters an error.
{
"transactionID": "8724fd24-5489-4a5d-90fd-0604df7d3b83",
"status": "pending",
"paymentMethodID": "17d57b9a-408d-49b8-9a97-9db382593003"
}
Gr4vyResult.Cancelled
Returned when the user cancels/quits the SDK.
Gr4vyResult.GeneralError
Returned when the SDK encounters an error.
{
"Gr4vy Error: Failed to load"
}
Was this page helpful?