ActiveMerchant 1.3 has been released. The focus on this latest release was the addition of standardized support for the Address Verification System (AVS) and credit card verification value (CVV2) checks across all gateways which is the latest extraction from Shopify.
AVS information helps reduce fraud by checking the billing address of the customer with the cardholder information on file at the credit card company. CVV2 checks help ensure that the cardholder information has not been stolen from a database of credit card numbers because it is forbidden to record or store CVV2 numbers in any way.
The results of the AVS and CVV2 checks are now available in the response object. ActiveMerchant does all the work of interpreting the information returned from the payment gateways for you and makes the information available in a consistent hash format.
Sample AVS/CVV2 result:
response.avs_result['message'] #=> "Street address and 9-digit postal code match." response.cvv_result['message'] #=> "Suspicious Transaction." # Details: response.avs_result['code'] #=> "X" response.avs_result['street_match'] #=> "Y" response.avs_result['postal_match'] #=> "Y" response.cvv_result['code'] #=> "D"
Other notable improvements with the 1.3 release include:
- Improved documentation
- Common interface to AVS / CVV2 results
- New gateways, including Authorize.net Recurring Billing (ARB)
- Improved supported feature set of many existing gateways
- Automatically retry failed connections (when it’s safe)
Coinciding with the 1.3 release of ActiveMerchant is the [ActiveMerchant PeepCode PDF](http://peepcode.com/products/activemerchant-pdf) by [Cody Fauser](http://www.codyfauser.com). The PDF goes over the basics of payment processing, making purchases with ActiveMerchant, and security considerations to keep in mind when processing credit cards in your Rails application. The PDF also walks through the development of a sample Rails application that addresses topics such as order pipelines, order state management and the appropriate unit testing a financial application requires. It is definitely a great read if you are curious about payment processing or require payment processing in your application.