AuthorizeNet / sample-code-ruby

This repository contains working code samples which demonstrate ruby integration with the Authorize.Net API
MIT License
24 stars 58 forks source link

Add transactionResponse.responseCode checks #71

Open mdubbs opened 5 years ago

mdubbs commented 5 years ago

These updates to the PaymentTransactions examples should help to alleviate some of the confusion as to what constitutes a successful transaction (not just API response) coming back from Authorize.Net when using the authorizenet gem.

The current examples don't show checking the actual response code to verify if the transaction was successful, rather they show only the check on whether the Authorize.Net API successfully processed the request (not if the transaction was successful, declined, held for AFDS, failed for some other reason).