Class: ActiveMerchant::Billing::Integrations::Pxpay::Return

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



6
7
8
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 6

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

Instance Method Details

#cancelled?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 14

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

#messageObject



18
19
20
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 18

def message
  @notification.message
end

#success?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 10

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