vendor/extensions/payment_gateway/lib/spree/bogus_gateway.rb in spree-0.5.1 vs vendor/extensions/payment_gateway/lib/spree/bogus_gateway.rb in spree-0.6.0
- old
+ new
@@ -17,22 +17,22 @@
def initialize(options = {})
end
- def authorize(money, creditcard, options = {})
+ def authorize(money, creditcard, options = {})
if VALID_CCS.include? creditcard.number
ActiveMerchant::Billing::Response.new(true, "Bogus Gateway: Forced success", {}, :test => true, :authorization => '12345')
else
- ActiveMerchant::Billing::Response.new(false, "Bogus Gateway: Forced failure", {:error => 'Bogus Gateway: Forced failure'}, :test => true)
+ ActiveMerchant::Billing::Response.new(false, "Bogus Gateway: Forced failure", {:message => 'Bogus Gateway: Forced failure'}, :test => true)
end
end
def purchase(money, creditcard, options = {})
if VALID_CCS.include? creditcard.number
ActiveMerchant::Billing::Response.new(true, "Bogus Gateway: Forced success", {}, :test => true, :authorization => '12345')
else
- ActiveMerchant::Billing::Response.new(false, "Bogus Gateway: Forced failure", :error => 'Bogus Gateway: Forced failure', :test => true)
+ ActiveMerchant::Billing::Response.new(false, "Bogus Gateway: Forced failure", :message => 'Bogus Gateway: Forced failure', :test => true)
end
end
def credit(money, ident, options = {})
if ident == "12345"