Class: OffsitePayments::Integrations::SagePayForm::Return
- Defined in:
- lib/offsite_payments/integrations/sage_pay_form.rb
Instance Attribute Summary
Attributes inherited from Return
Instance Method Summary collapse
- #cancelled? ⇒ Boolean
-
#initialize(query_string, options) ⇒ Return
constructor
A new instance of Return.
- #message ⇒ Object
- #success? ⇒ Boolean
Methods inherited from Return
Constructor Details
#initialize(query_string, options) ⇒ Return
Returns a new instance of Return.
403 404 405 406 407 408 409 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 403 def initialize(query_string, ) begin @notification = Notification.new(query_string, ) rescue Notification::CryptError => e @message = e. end end |
Instance Method Details
#cancelled? ⇒ Boolean
415 416 417 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 415 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
419 420 421 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 419 def @message || @notification. end |
#success? ⇒ Boolean
411 412 413 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 411 def success? @notification && @notification.complete? end |