Class: OffsitePayments::Integrations::Pxpay::Return
- Defined in:
- lib/offsite_payments/integrations/pxpay.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.
253 254 255 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 253 def initialize(query_string, ={}) @notification = Notification.new(query_string, ) end |
Instance Method Details
#cancelled? ⇒ Boolean
261 262 263 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 261 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
265 266 267 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 265 def @notification. end |
#success? ⇒ Boolean
257 258 259 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 257 def success? @notification && @notification.complete? end |