PaymentGatewayLibrary

AuthorizeNetRequest.EnsureValidData Method 

Checks that the minimum set of fields that should be submitted to the gateway are provided.

[Visual Basic]
Public Sub EnsureValidData()
[C#]
public void EnsureValidData();

Remarks

Minimum fields for credit card transaction

Field NameValue
LoginMerchant’s Login Id
TransactionKeyMerchant’s Transaction Key
MethodPayment method (CC)
TypeType of transaction (AUTH_CAPTURE, AUTH_ONLY, CAPTURE_ONLY, CREDIT, VOID, PRIOR_AUTH_CAPTURE)
AmountAmount of purchase inclusive of tax
CardNumberCustomer's card number
ExpiryDateCustomer's card expiration date
Version3.1 (Ver3Dot1)

Minimum fields for credit card transaction

Field NameValue
LoginMerchant’s Login Id
TransactionKeyMerchant’s Transaction Key
MethodPayment method (ECHECK)
TypeType of transaction (AUTH_CAPTURE, CREDIT, VOID)
AmountAmount of purchase inclusive of tax
BankABACodeABA routing number
BankAccountNumberBank Account Number
BankAccountTypeType of Account – Checkings (CHECKING) or Savings (SAVINGS)
BankNameName of bank at which account is maintained
BankAccountNameName under which the account is maintained at the bank
Version3.1 (Ver3Dot1)

Exceptions

Exception TypeCondition
InvalidEnumArgumentExceptionThrown when payment method is incompatible with transaction type. For ECHECK payment methods, only AUTH_CAPTURE, CREDIT or VOID tyansaction types are valid.
PaymentGatewayRequiredFieldExceptionThe exception that is thrown when a required field is missing.

See Also

AuthorizeNetRequest Class | Duis.Payment Namespace