sample-code-ruby icon indicating copy to clipboard operation
sample-code-ruby copied to clipboard

Add transactionResponse.responseCode checks

Open mdubbs opened this issue 6 years ago • 0 comments

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).

mdubbs avatar Jun 04 '19 04:06 mdubbs