---
schema_version: "1"
id: b8beeb6ce4f166337a359d97fa19abc05611adb5ce8e61bfb596ef0252b8cf7d
title: PaymentMethod Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_RichMessaging_PaymentMethod.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0d0aaf8aa536a436c7fc13291e099721abe867c5e67658002c242cab76be3a0e
description: Represents a payment method.Creates a new instance of the RichMessaging.PaymentMethod class.The display name of the payment method.The network associated with the payment method.The payment type of the payment method.
---
# PaymentMethod Class

Represents a payment method.

## 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.")

- **[PaymentMethod Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_constructors)**
- **[PaymentMethod Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_properties)**

## PaymentMethod Constructors

The following are constructors for PaymentMethod.

- **[PaymentMethod(network, paymentType, displayName)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_ctor)**  
    Creates a new instance of the RichMessaging.PaymentMethod class.

### PaymentMethod(network, paymentType, displayName)

Creates a new instance of the RichMessaging.PaymentMethod class.

#### Signature

public PaymentMethod(String network, String paymentType, String displayName)

#### Parameters

- **network**: 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 network associated with the payment method.
- **paymentType**: 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 payment type of the payment method.
- **displayName**: 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 display name of the payment method.

## PaymentMethod Properties

The following are properties for PaymentMethod.

- **[displayName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_displayName)**  
    The display name of the payment method.
- **[network](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_network)**  
    The network associated with the payment method.
- **[paymentType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_RichMessaging_PaymentMethod.htm#apex_RichMessaging_PaymentMethod_paymentType)**  
    The payment type of the payment method.

### displayName

The display name of the payment method.

#### Signature

public String displayName {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.")

### network

The network associated with the payment method.

#### Signature

public String network {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.")

### paymentType

The payment type of the payment method.

#### Signature

public String paymentType {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.")