Class: OffsitePayments::Integrations::Molpay::Return

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

Instance Attribute Summary

Attributes inherited from Return

#notification, #params

Instance Method Summary collapse

Methods inherited from Return

#cancelled?, #message, #parse

Constructor Details

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

Returns a new instance of Return.



178
179
180
181
# File 'lib/offsite_payments/integrations/molpay.rb', line 178

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

Instance Method Details

#pending?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/offsite_payments/integrations/molpay.rb', line 187

def pending?
  @notification.status == 'Pending'
end

#success?Boolean

Returns:

  • (Boolean)


183
184
185
# File 'lib/offsite_payments/integrations/molpay.rb', line 183

def success?
  @notification.acknowledge
end