lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.9.4 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.10.0

- old
+ new

@@ -371,10 +371,10 @@ if results[:response_code] == DECLINED return CVVResult.messages[ results[:card_code] ] if CARD_CODE_ERRORS.include?(results[:card_code]) return AVSResult.messages[ results[:avs_result_code] ] if AVS_ERRORS.include?(results[:avs_result_code]) end - return results[:response_reason_text].nil? ? '' : results[:response_reason_text][0..-2] + return results[:response_reason_text].nil? ? '' : results[:response_reason_text].chomp('.') end def expdate(creditcard) year = sprintf("%.4i", creditcard.year) month = sprintf("%.2i", creditcard.month)