lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.101.0 vs lib/active_merchant/billing/gateways/barclaycard_smartpay.rb in activemerchant-1.102.0
- old
+ new
@@ -127,28 +127,28 @@
private
# Smartpay may return AVS codes not covered by standard AVSResult codes.
# Smartpay's descriptions noted below.
AVS_MAPPING = {
- '0' => 'R', # Unknown
- '1' => 'A', # Address matches, postal code doesn't
- '2' => 'N', # Neither postal code nor address match
- '3' => 'R', # AVS unavailable
- '4' => 'E', # AVS not supported for this card type
- '5' => 'U', # No AVS data provided
- '6' => 'Z', # Postal code matches, address doesn't match
- '7' => 'D', # Both postal code and address match
- '8' => 'U', # Address not checked, postal code unknown
- '9' => 'B', # Address matches, postal code unknown
- '10' => 'N', # Address doesn't match, postal code unknown
- '11' => 'U', # Postal code not checked, address unknown
- '12' => 'B', # Address matches, postal code not checked
- '13' => 'U', # Address doesn't match, postal code not checked
- '14' => 'P', # Postal code matches, address unknown
- '15' => 'P', # Postal code matches, address not checked
- '16' => 'N', # Postal code doesn't match, address unknown
- '17' => 'U', # Postal code doesn't match, address not checked
- '18' => 'I' # Neither postal code nor address were checked
+ '0' => 'R', # Unknown
+ '1' => 'A', # Address matches, postal code doesn't
+ '2' => 'N', # Neither postal code nor address match
+ '3' => 'R', # AVS unavailable
+ '4' => 'E', # AVS not supported for this card type
+ '5' => 'U', # No AVS data provided
+ '6' => 'Z', # Postal code matches, address doesn't match
+ '7' => 'D', # Both postal code and address match
+ '8' => 'U', # Address not checked, postal code unknown
+ '9' => 'B', # Address matches, postal code unknown
+ '10' => 'N', # Address doesn't match, postal code unknown
+ '11' => 'U', # Postal code not checked, address unknown
+ '12' => 'B', # Address matches, postal code not checked
+ '13' => 'U', # Address doesn't match, postal code not checked
+ '14' => 'P', # Postal code matches, address unknown
+ '15' => 'P', # Postal code matches, address not checked
+ '16' => 'N', # Postal code doesn't match, address unknown
+ '17' => 'U', # Postal code doesn't match, address not checked
+ '18' => 'I' # Neither postal code nor address were checked
}
def commit(action, post, account = 'ws', password = @options[:password])
request = post_data(flatten_hash(post))
request_headers = headers(account, password)