Class: ActiveMerchant::Billing::Integrations::SagePayForm::Return
- Defined in:
- lib/active_merchant/billing/integrations/sage_pay_form/return.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.
7 8 9 10 11 12 13 |
# File 'lib/active_merchant/billing/integrations/sage_pay_form/return.rb', line 7 def initialize(query_string, ) begin @notification = Notification.new(query_string, ) rescue Notification::CryptError => e @message = e. end end |
Instance Method Details
#cancelled? ⇒ Boolean
19 20 21 |
# File 'lib/active_merchant/billing/integrations/sage_pay_form/return.rb', line 19 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
23 24 25 |
# File 'lib/active_merchant/billing/integrations/sage_pay_form/return.rb', line 23 def @message || @notification. end |
#success? ⇒ Boolean
15 16 17 |
# File 'lib/active_merchant/billing/integrations/sage_pay_form/return.rb', line 15 def success? @notification && @notification.complete? end |