Class: ActiveMerchant::Billing::Integrations::Pxpay::Return
- Defined in:
- lib/active_merchant/billing/integrations/pxpay/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.
6 7 8 |
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 6 def initialize(query_string, ={}) @notification = Notification.new(query_string, ) end |
Instance Method Details
#cancelled? ⇒ Boolean
14 15 16 |
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 14 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
18 19 20 |
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 18 def @notification. end |
#success? ⇒ Boolean
10 11 12 |
# File 'lib/active_merchant/billing/integrations/pxpay/return.rb', line 10 def success? @notification && @notification.complete? end |