Class: OffsitePayments::Integrations::Ipay88::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/offsite_payments/integrations/ipay88.rb

Instance Attribute Summary

Attributes inherited from Return

#notification, #params

Instance Method Summary collapse

Methods inherited from Return

#parse

Constructor Details

#initialize(query_string, options = {}) ⇒ Return

Returns a new instance of Return.



232
233
234
235
# File 'lib/offsite_payments/integrations/ipay88.rb', line 232

def initialize(query_string, options = {})
  super
  @notification = Notification.new(query_string, options)
end

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


241
242
243
# File 'lib/offsite_payments/integrations/ipay88.rb', line 241

def cancelled?
  params["ErrDesc"] == CANCELLED_ERROR_DESCRIPTION
end

#messageObject



245
246
247
# File 'lib/offsite_payments/integrations/ipay88.rb', line 245

def message
  params["ErrDesc"]
end

#success?Boolean

Returns:

  • (Boolean)


237
238
239
# File 'lib/offsite_payments/integrations/ipay88.rb', line 237

def success?
  params["Status"] == "1"
end