Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Payments Namespace / Transaction Class / CreateErrorTransaction Method / CreateErrorTransaction(Int32,ITransactionRequest,String,String) Method
The id of the payment gateway.
The request for the failed transaction.
The error code to report.
The error message to report.
In This Topic
    CreateErrorTransaction(Int32,ITransactionRequest,String,String) Method
    In This Topic
    Creates a transaction to report an error for a payment gateway.
    Syntax

    Parameters

    paymentGatewayId
    The id of the payment gateway.
    request
    The request for the failed transaction.
    errorCode
    The error code to report.
    errorMessage
    The error message to report.

    Return Value

    A transaction object configured with the error message.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also