lib/active_merchant/billing/gateways/redsys.rb in activemerchant-1.45.0 vs lib/active_merchant/billing/gateways/redsys.rb in activemerchant-1.46.0
- old
+ new
@@ -98,11 +98,11 @@
184 => "Authentication error",
190 => "Refusal with no specific reason",
191 => "Expiry date incorrect",
201 => "Card expired",
- 202 => "Card blocked temporarily or under suscipition of fraud",
+ 202 => "Card blocked temporarily or under suspicion of fraud",
204 => "Transaction not permitted",
207 => "Contact the card issuer",
208 => "Lost or stolen card",
209 => "Lost or stolen card",
280 => "CVV2/CVC2 Error",
@@ -379,10 +379,10 @@
end
def clean_order_id(order_id)
cleansed = order_id.gsub(/[^\da-zA-Z]/, '')
if cleansed =~ /^\d{4}/
- cleansed[0..12]
+ cleansed[0..11]
else
"%04d%s" % [rand(0..9999), cleansed[0...8]]
end
end
end