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
-
#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
#message ⇒ Object
19 20 21 |
# File 'lib/active_merchant/billing/integrations/sage_pay_form/return.rb', line 19 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 |