lib/active_merchant/billing/gateways/bogus.rb in activemerchant-1.32.1 vs lib/active_merchant/billing/gateways/bogus.rb in activemerchant-1.33.0
- old
+ new
@@ -32,10 +32,10 @@
def purchase(money, credit_card_or_reference, options = {})
money = amount(money)
case normalize(credit_card_or_reference)
when /1$/, AUTHORIZATION
- Response.new(true, SUCCESS_MESSAGE, {:paid_amount => money}, :test => true)
+ Response.new(true, SUCCESS_MESSAGE, {:paid_amount => money}, :test => true, :authorization => AUTHORIZATION)
when /2$/
Response.new(false, FAILURE_MESSAGE, {:paid_amount => money, :error => FAILURE_MESSAGE },:test => true)
else
raise Error, ERROR_MESSAGE
end