AVSOnly Method
Performs AVS and CVV card validation checks without actually making a transaction.
Syntax
globalcharge.AVSOnly([callback])
Callback
The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).
The callback for this method is defined as:
function(err){ }
'err' is the error that occurred. If there was no error, then 'err' is 'null'.
'err' has 2 properties which hold detailed information:
err.code err.message
Remarks
Please note that an AVSOnly transaction will not place a hold on any funds and will not reduce the cardholder's limit to buy. Also, an AVSOnly transaction will not place a transaction in the batch and no money will be transferred from the cardholder's account to the merchant's account. An AVS Only transaction should be used if the amount of the transaction is unknown but the merchant would like to perform validation that the card is good and the address matches what is on file at the issuer.
Once the amount of the transaction is known, process either a new Sale transaction, a RepeatSale using the PNRef returned in the AVS-Only Response, or a AuthOnly and then a Capture. Do not process a Force or Capture to "finalize" an AVSOnly transaction.
Note: The AVSOnly transaction is not supported in the eCommerce market.