---
schema_version: "1"
id: 71c408a41d34c4986d4efaf1179520f134240752af4591250f213fcc8037b22a
title: SalesforceResultCode Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_commercepayments_SalesforceResultCode.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_commercepayments_SalesforceResultCode.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 12c1ed4bc434bf1a6db0fdcfaa55f8fb2bd0d4d1fe1f7df6ed296aebdbc1da47
description: Defines the gateway call status values in Salesforce based on the call status values that the payment gateway returned.
---
# SalesforceResultCode Enum

Defines the gateway call status values in Salesforce based on the call status values that the payment gateway returned.

## Usage

Payment gateways can return many different responses. Salesforce maps these responses into one of seven possible Salesforce response values.

## Enum Values

The following are the values of the commercepayments.SalesforceResultCode enum.

| Value | Description |
| --- | --- |
| Decline | The gateway call failed, but it may still work if you try again. For example, the customer had insufficient funds or briefly lost their connection to the internet. This is also known as a “soft decline.” |
| Indeterminate | The gateway didn't respond to the call and the user has to check the transaction request’s status. Indeterminate responses often occur following server timeouts, system failure, or any action that interrupts the gateway’s ability to process the payment. |
| PermanentFail | The customer’s bank recognized the payment account as closed, terminated, or fraudulent. The gateway won’t further calls from the payment method associate with the transaction. After a permanent fail response, the transaction changes its gateway status to Permanent Fail. |
| RequiresReview | The gateway call initially failed, but the payment method may still work after further evaluation. This response often happens when the customer bank requires more information about the payment request. In this case, the bank provides an authorization code manually when the payment manager calls the processor. |
| Success | The gateway processed the transaction successfully. |
| SystemError | Salesforce ended the payment request call before receiving a gateway response. System error responses often occur due to gateway server errors, invalid customer credentials, or anytime the request times out before receiving a gateway response. The failure occurs before the request reaches the gateway, so there’s no risk of an unaccounted payment remaining in the gateway. You can continue with the transaction by manually creating a payment. |
| ValidationError | The gateway received incorrect customer payment information, such as misspelled credit card names or a CVV with missing numbers. |