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

Returns a new instance of Return.



253
254
255
# File 'lib/offsite_payments/integrations/pxpay.rb', line 253

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

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


261
262
263
# File 'lib/offsite_payments/integrations/pxpay.rb', line 261

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

#messageObject



265
266
267
# File 'lib/offsite_payments/integrations/pxpay.rb', line 265

def message
  @notification.message
end

#success?Boolean

Returns:

  • (Boolean)


257
258
259
# File 'lib/offsite_payments/integrations/pxpay.rb', line 257

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