Class: OffsitePayments::Integrations::Pxpay::Return

Inherits:
Return
  • Object
show all
Defined in:
lib/offsite_payments/integrations/pxpay.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


255
256
257
# File 'lib/offsite_payments/integrations/pxpay.rb', line 255

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

Instance Method Details

#cancelled?Boolean


263
264
265
# File 'lib/offsite_payments/integrations/pxpay.rb', line 263

def cancelled?
  @notification && @notification.cancelled?
end

#messageObject


267
268
269
# File 'lib/offsite_payments/integrations/pxpay.rb', line 267

def message
  @notification.message
end

#success?Boolean


259
260
261
# File 'lib/offsite_payments/integrations/pxpay.rb', line 259

def success?
  @notification && @notification.complete?
end