# Result Codes and Errors

This reference lists the status codes and error fields returned by the Get Smart application. Use these values to determine the outcome of a transaction and diagnose processing errors.

## Activity Result Codes

The Android system returns a standard `resultCode` in the `onActivityResult` callback. This indicates whether the Get Smart activity finished its workflow.

| Code Constant | Value | Description |
| :---- | :---- | :---- |
| `RESULT_OK` | `-1` | The Get Smart app completed the flow. This does **not** imply payment authorization. Check the `RESULT` extra to determine transaction outcome. |
| `RESULT_CANCELED` | `0` | The user aborted the process or the app encountered a critical startup error. |

<Callout type="warning">

`RESULT_OK` only means the Get Smart application completed its workflow. You must check the `RESULT` Intent extra to determine if the payment was actually authorized.

</Callout>

## Reading the Outcome

`RESULT_OK` tells you the Get Smart app finished its flow. The outcome itself travels in
two extras of the returned Intent:

| Field Name | Type | Description |
| :---- | :---- | :---- |
| `RESULT` | String | Transaction outcome. Values: `"AUTORIZADA"` or `"DENEGADA"`. |
| `ERROR_MSG` | String | Description of the error. |

Read `RESULT` first, and show `ERROR_MSG` when it is present. On a declined operation,
`RESPCODE` carries the denial code.

For the full set of extras returned by the app, see
[Response Parameters](https://docs.globalgetnet.com/en/products/local-processor-spain/get-smart-app2app?doc=getsmart-app2app-response-api-reference).

## Related Resources

* [Response Parameters Reference](https://docs.globalgetnet.com/en/products/local-processor-spain/get-smart-app2app?doc=getsmart-app2app-response-api-reference) - Complete reference for all response fields
* [Handle Transaction Results](/en/get-smart/get-smart-app2app/transaction-guides/transactions/handle-transaction-results) - Step-by-step guide for implementing response logic
* [Request Parameters](https://docs.globalgetnet.com/en/products/local-processor-spain/get-smart-app2app?doc=getsmart-app2app-request-reference) - Input parameters for transaction Intents