class OffsitePayments::Integrations::PayuIn::Return
Public Class Methods
new(query_string, options = {})
click to toggle source
Calls superclass method
OffsitePayments::Return::new
# File lib/offsite_payments/integrations/payu_in.rb, line 249 def initialize(query_string, options = {}) super @notification = Notification.new(query_string, options) end
Public Instance Methods
message()
click to toggle source
# File lib/offsite_payments/integrations/payu_in.rb, line 270 def message @notification.message end
status( order_id, order_amount )
click to toggle source
# File lib/offsite_payments/integrations/payu_in.rb, line 258 def status( order_id, order_amount ) if @notification.invoice_ok?( order_id ) && @notification.amount_ok?( BigDecimal.new(order_amount) ) @notification.status else 'Mismatch' end end
success?()
click to toggle source
# File lib/offsite_payments/integrations/payu_in.rb, line 266 def success? status( @params['txnid'], @params['amount'] ) == 'Completed' end
transaction_id()
click to toggle source
# File lib/offsite_payments/integrations/payu_in.rb, line 254 def transaction_id @notification.transaction_id end