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.
255 256 257 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 255 def initialize(query_string, ={}) @notification = Notification.new(query_string, ) end |
Instance Method Details
#cancelled? ⇒ Boolean
263 264 265 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 263 def cancelled? @notification && @notification.cancelled? end |
#message ⇒ Object
267 268 269 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 267 def @notification. end |
#success? ⇒ Boolean
259 260 261 |
# File 'lib/offsite_payments/integrations/pxpay.rb', line 259 def success? @notification && @notification.complete? end |