Class: OffsitePayments::Integrations::TwoCheckout::Return

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

Third Party Cart Only cart_order_id - The order ID you had assigned to the order



318
319
320
321
# File 'lib/offsite_payments/integrations/two_checkout.rb', line 318

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

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


323
324
325
# File 'lib/offsite_payments/integrations/two_checkout.rb', line 323

def success?
  @notification.status != 'Failed'
end