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.

PaymentTransaction Class

Represents a payment transaction.

Namespace

RichMessaging

PaymentTransaction Properties

The following are properties for PaymentTransaction.

transactionId

The unique identifier of the transaction.

Signature

public String transactionId {get; set;}

Property Value

Type: String

transactionType

The type of the transaction.

Signature

public RichMessaging.PaymentTransactionType transactionType {get; set;}

status

The status of the transaction.

Signature

public RichMessaging.PaymentTransactionStatus status {get; set;}

amount

The amount of the transaction.

Signature

public RichMessaging.CurrencyAmount amount {get; set;}

Property Value

Type: RichMessaging.CurrencyAmount

gatewayReference

The reference identifier from the payment gateway.

Signature

public String gatewayReference {get; set;}

Property Value

Type: String

timestamp

The date and time when the transaction occurred.

Signature

public Datetime timestamp {get; set;}

Property Value

Type: Datetime

refunds

The list of refunds associated with the transaction.

Signature

public List<RichMessaging.Refund> refunds {get; set;}

Property Value

Type: List<RichMessaging.Refund>