public static Transaction CreateErrorTransaction( int paymentGatewayId, ITransactionRequest request, string errorCode, string errorMessage )
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.