Class ProcessPaymentActivity
This activity handles processing different types of payments. It will call the appropriate payment handler configured in the database and raise exceptions if something goes wrong. It also deals with removing sensitive data for credit card types of payments depending on the configuration settings.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Workflow.Activities.Cart
Assembly: Mediachase.Commerce.Workflow.dll
Version: 10.8.0Syntax
public class ProcessPaymentActivity : CartActivityBase
Constructors
ProcessPaymentActivity()
Initializes a new instance of the ProcessPaymentActivity class.
Declaration
public ProcessPaymentActivity()
Fields
ProcessedPaymentEvent
Occurs when [processed payment].
Declaration
public static string ProcessedPaymentEvent
Field Value
Type | Description |
---|---|
System.String |
ProcessingPaymentEvent
Occurs when [processing payment].
Declaration
public static string ProcessingPaymentEvent
Field Value
Type | Description |
---|---|
System.String |
Properties
Payment
Gets or sets the payment.
Declaration
[ActivityFlowContextProperty]
public Payment Payment { get; set; }
Property Value
Type | Description |
---|---|
Payment | The payment. |
Shipment
Gets or sets the shipment.
Declaration
[ActivityFlowContextProperty]
public Shipment Shipment { get; set; }
Property Value
Type | Description |
---|---|
Shipment | The shipment. |
Methods
Execute(ActivityExecutionContext)
Executes the specified execution context.
Declaration
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
ActivityExecutionContext | executionContext | The execution context. |
Returns
Type | Description |
---|---|
ActivityExecutionStatus |
Overrides
ValidateOrderProperties(ValidationErrorCollection)
Validates the order properties.
Declaration
protected override void ValidateOrderProperties(ValidationErrorCollection validationErrors)
Parameters
Type | Name | Description |
---|---|---|
ValidationErrorCollection | validationErrors | The validation errors. |