lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.34.1 vs lib/active_merchant/billing/gateways/authorize_net.rb in activemerchant-1.35.0
- old
+ new
@@ -36,11 +36,11 @@
class_attribute :duplicate_window
APPROVED, DECLINED, ERROR, FRAUD_REVIEW = 1, 2, 3, 4
- RESPONSE_CODE, RESPONSE_REASON_CODE, RESPONSE_REASON_TEXT = 0, 2, 3
+ RESPONSE_CODE, RESPONSE_REASON_CODE, RESPONSE_REASON_TEXT, AUTHORIZATION_CODE = 0, 2, 3, 4
AVS_RESULT_CODE, TRANSACTION_ID, CARD_CODE_RESPONSE_CODE = 5, 6, 38
self.default_currency = 'USD'
self.supported_countries = ['US', 'CA', 'GB']
@@ -308,10 +308,11 @@
:response_code => fields[RESPONSE_CODE].to_i,
:response_reason_code => fields[RESPONSE_REASON_CODE],
:response_reason_text => fields[RESPONSE_REASON_TEXT],
:avs_result_code => fields[AVS_RESULT_CODE],
:transaction_id => fields[TRANSACTION_ID],
- :card_code => fields[CARD_CODE_RESPONSE_CODE]
+ :card_code => fields[CARD_CODE_RESPONSE_CODE],
+ :authorization_code => fields[AUTHORIZATION_CODE]
}
results
end
def post_data(action, parameters = {})