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.
412 413 414 415 416 417 418 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 412 def initialize(query_string, ) begin @notification = Notification.new(query_string, ) rescue Notification::CryptError => e @message = e. end end |
Instance Method Details
#cancelled? ⇒ Boolean
424 425 426 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 424 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
428 429 430 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 428 def @message || @notification. end |
#success? ⇒ Boolean
420 421 422 |
# File 'lib/offsite_payments/integrations/sage_pay_form.rb', line 420 def success? @notification && @notification.complete? end |