November Happy Hour will be moved to Thursday December 5th.

Class PaymentProcessingResult

Represents results when processing an IPayment.

Inheritance
System.Object
PaymentProcessingResult
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: EPiServer.Commerce.Order
Assembly: EPiServer.Business.Commerce.dll
Version: 12.17.2
Syntax
public class PaymentProcessingResult

Constructors

PaymentProcessingResult()

Declaration
public PaymentProcessingResult()

Properties

IsSuccessful

Gets the flag indicating whether the processing is successful.

Declaration
public bool IsSuccessful { get; }
Property Value
Type Description
System.Boolean

Message

Gets the message during processing.

Declaration
public string Message { get; }
Property Value
Type Description
System.String

RedirectUrl

Gets the redirect url.

Declaration
public string RedirectUrl { get; }
Property Value
Type Description
System.String

Methods

CreateSuccessfulResult(String)

Creates successful processing result.

Declaration
public static PaymentProcessingResult CreateSuccessfulResult(string message)
Parameters
Type Name Description
System.String message

The message.

Returns
Type Description
PaymentProcessingResult

Instance of PaymentProcessingResult

CreateSuccessfulResult(String, String)

Creates successful processing result with specific action.

Declaration
public static PaymentProcessingResult CreateSuccessfulResult(string message, string redirectUrl)
Parameters
Type Name Description
System.String message

The message.

System.String redirectUrl

The redirect url.

Returns
Type Description
PaymentProcessingResult

Instance of PaymentProcessingResult

CreateUnsuccessfulResult(String)

Creates unsuccessful processing result.

Declaration
public static PaymentProcessingResult CreateUnsuccessfulResult(string message)
Parameters
Type Name Description
System.String message

The message.

Returns
Type Description
PaymentProcessingResult

Instance of PaymentProcessingResult