Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

PaymentMethod Class

Represents a payment method.

Namespace

RichMessaging

PaymentMethod Constructors

The following are constructors for PaymentMethod.

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

PaymentMethod Properties

The following are properties for PaymentMethod.

displayName

The display name of the payment method.

Signature

public String displayName {get; set;}

Property Value

Type: String

network

The network associated with the payment method.

Signature

public String network {get; set;}

Property Value

Type: String

paymentType

The payment type of the payment method.

Signature

public String paymentType {get; set;}

Property Value

Type: String