Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Payments Namespace / Transaction Class / CreateErrorTransaction Method / CreateErrorTransaction(Int32,TransactionType,Decimal,String,String,String) Method
The id of the payment gateway.
The type of the transaction attempted.
The amount of the transaction attempted.
The error code to report.
The error message to report.
The IP of the remote user initiating the transaction.
In This Topic
    CreateErrorTransaction(Int32,TransactionType,Decimal,String,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.
    transactionType
    The type of the transaction attempted.
    amount
    The amount of the transaction attempted.
    errorCode
    The error code to report.
    errorMessage
    The error message to report.
    remoteIP
    The IP of the remote user initiating the transaction.

    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