---
schema_version: "1"
id: aa1b7f6c92c395e42d86b95afd78a6527a96037cbf5a608b3d895099720ff6e7
title: ProcessPaymentResult Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_ProcessPaymentResult.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 02b753ea42aa35adff245e8f6f8a6a4e11f30697ef83b423ab8d2909f0eaf242
description: Represents the result of a payment processing operation.Creates a new instance of the RichMessaging.ProcessPaymentResult class.Creates a new instance of the RichMessaging.ProcessPaymentResult class.The error message associated with the payment processing result, if any.The status of the payment processing result.
---
# ProcessPaymentResult Class

Represents the result of a payment processing operation.

## Namespace

[RichMessaging](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_RichMessaging.htm "Provides objects and methods for handling content in enhanced Messaging channels.")

- **[ProcessPaymentResult Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_constructors)**
- **[ProcessPaymentResult Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_properties)**

## ProcessPaymentResult Constructors

The following are constructors for ProcessPaymentResult.

- **[ProcessPaymentResult(resultStatus, errorMessage)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_ctor)**  
    Creates a new instance of the RichMessaging.ProcessPaymentResult class.
- **[ProcessPaymentResult(resultStatus)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_ctor_2)**  
    Creates a new instance of the RichMessaging.ProcessPaymentResult class.

### ProcessPaymentResult(resultStatus, errorMessage)

Creates a new instance of the RichMessaging.ProcessPaymentResult class.

#### Signature

public ProcessPaymentResult(RichMessaging.ProcessPaymentResultStatus resultStatus, String errorMessage)

#### Parameters

- **resultStatus**: Type: [RichMessaging.ProcessPaymentResultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_ProcessPaymentResultStatus.htm "Represents the status of a payment processing result.") The status of the payment processing result.
- **errorMessage**: Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.") The error message associated with the payment processing result, if any.

### ProcessPaymentResult(resultStatus)

Creates a new instance of the RichMessaging.ProcessPaymentResult class.

#### Signature

public ProcessPaymentResult(RichMessaging.ProcessPaymentResultStatus resultStatus)

#### Parameters

- **resultStatus**: Type: [RichMessaging.ProcessPaymentResultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_ProcessPaymentResultStatus.htm "Represents the status of a payment processing result.") The status of the payment processing result.

## ProcessPaymentResult Properties

The following are properties for ProcessPaymentResult.

- **[errorMessage](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_errorMessage)**  
    The error message associated with the payment processing result, if any.
- **[resultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_ProcessPaymentResult.htm#apex_RichMessaging_ProcessPaymentResult_resultStatus)**  
    The status of the payment processing result.

### errorMessage

The error message associated with the payment processing result, if any.

#### Signature

public String errorMessage {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### resultStatus

The status of the payment processing result.

#### Signature

public RichMessaging.ProcessPaymentResultStatus resultStatus {get; set;}

#### Property Value

Type: [RichMessaging.ProcessPaymentResultStatus](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_RichMessaging_ProcessPaymentResultStatus.htm "Represents the status of a payment processing result.")