Sha256: 89fd7e0c8fb426e8f7f37bd592551ee76980d61ab9e5cfc98a62c0e44a42a541
Contents?: true
Size: 587 Bytes
Versions: 5
Compression:
Stored size: 587 Bytes
Contents
module ActiveMerchant module Billing class BogusUsaEpayGateway < BogusGateway def verify(paysource, options) case normalize(paysource) when /1$/ Response.new(true, SUCCESS_MESSAGE, {:billingid => '1', :token => '1'}, :test => true, :authorization => AUTHORIZATION) when /2$/ Response.new(false, FAILURE_MESSAGE, {:billingid => nil, :error => FAILURE_MESSAGE }, :test => true, :error_code => STANDARD_ERROR_CODE[:processing_error]) else raise Error, error_message(paysource) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems