lib/active_merchant/billing/gateways/orbital/avs_result.rb in activemerchant-1.38.1 vs lib/active_merchant/billing/gateways/orbital/avs_result.rb in activemerchant-1.39.0
- old
+ new
@@ -30,47 +30,47 @@
'J' => 'Issuer does not participate in Global AVS',
'JA' => 'International street address and postal match',
'JB' => 'International street address match. Postal code not verified',
'JC' => 'International street address and postal code not verified',
'JD' => 'International postal code match. Street address not verified',
- 'M1' => 'Merchant Override Decline',
+ 'M1' => 'Cardholder name matches',
'M2' => 'Cardholder name, billing address, and postal code matches',
'M3' => 'Cardholder name and billing code matches',
- 'M4' => 'Cardholder name and billing address matches',
+ 'M4' => 'Cardholder name and billing address match',
'M5' => 'Cardholder name incorrect, billing address and postal code match',
- 'M6' => 'Cardholder name incorrect, billing address matches',
+ 'M6' => 'Cardholder name incorrect, billing postal code matches',
'M7' => 'Cardholder name incorrect, billing address matches',
'M8' => 'Cardholder name, billing address and postal code are all incorrect',
'N3' => 'Address matches, ZIP not verified',
'N4' => 'Address and ZIP code not verified due to incompatible formats',
'N5' => 'Address and ZIP code match (International only)',
'N6' => 'Address not verified (International only)',
'N7' => 'ZIP matches, address not verified',
'N8' => 'Address and ZIP code match (International only)',
'N9' => 'Address and ZIP code match (UK only)',
'R' => 'Issuer does not participate in AVS',
- 'UX' => 'Unknown',
+ 'UK' => 'Unknown',
'X' => 'Zip Match/Zip 4 Match/Address Match',
'Z' => 'Zip Match/Locale no match',
}
# Map vendor's AVS result code to a postal match code
ORBITAL_POSTAL_MATCH_CODE = {
'Y' => %w( 9 A B C H JA JD M2 M3 M5 N5 N8 N9 X Z ),
'N' => %w( D E F G M8 ),
'X' => %w( 4 J R ),
- nil => %w( 1 2 3 5 6 7 8 JB JC M1 M4 M6 M7 N3 N4 N6 N7 UX )
+ nil => %w( 1 2 3 5 6 7 8 JB JC M1 M4 M6 M7 N3 N4 N6 N7 UK )
}.inject({}) do |map, (type, codes)|
codes.each { |code| map[code] = type }
map
end
# Map vendor's AVS result code to a street match code
ORBITAL_STREET_MATCH_CODE = {
'Y' => %w( 9 B D F H JA JB M2 M4 M5 M6 M7 N3 N5 N7 N8 N9 X ),
'N' => %w( A C E G M8 Z ),
'X' => %w( 4 J R ),
- nil => %w( 1 2 3 5 6 7 8 JC JD M1 M3 N4 N6 UX )
+ nil => %w( 1 2 3 5 6 7 8 JC JD M1 M3 N4 N6 UK )
}.inject({}) do |map, (type, codes)|
codes.each { |code| map[code] = type }
map
end