Class CapturePaymentActivity
This activity is responsible for calculating the shipping prices for Payments defined for order group. It calls the appropriate interface defined by the shipping option table and passes the method id and Payment object.
Inherited Members
Namespace: Mediachase.Commerce.Workflow.Activities
Assembly: Mediachase.Commerce.Workflow.dll
Version: 12.17.2Syntax
public class CapturePaymentActivity : OrderGroupActivityBase
Constructors
CapturePaymentActivity()
Initializes a new instance of the CapturePaymentActivity class.
Declaration
public CapturePaymentActivity()
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
Shipment
Gets or sets the shipment.
Declaration
[ActivityFlowContextProperty]
public Shipment Shipment { get; set; }
Property Value
Type | Description |
---|---|
Shipment | The shipment. |
Methods
Execute(ActivityExecutionContext)
Called by the workflow runtime to execute an activity.
Declaration
protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
ActivityExecutionContext | executionContext | The ActivityExecutionContext to associate with this Activity and execution. |
Returns
Type | Description |
---|---|
ActivityExecutionStatus | The ActivityExecutionStatus of the run task, which determines whether the activity remains in the executing state, or transitions to the closed state. |
Overrides
ValidateOrderProperties(ValidationErrorCollection)
Validates the order properties.
Declaration
protected override void ValidateOrderProperties(ValidationErrorCollection validationErrors)
Parameters
Type | Name | Description |
---|---|---|
ValidationErrorCollection | validationErrors | The validation errors. |