class OffsitePayments::Integrations::Paysbuy::Notification
Constants
- FAIL
- PENDING
- SUCCESS
Public Instance Methods
acknowledge(authcode = nil)
click to toggle source
# File lib/offsite_payments/integrations/paysbuy.rb, line 65 def acknowledge(authcode = nil) true end
complete?()
click to toggle source
# File lib/offsite_payments/integrations/paysbuy.rb, line 43 def complete? status == 'Completed' end
item_id()
click to toggle source
# File lib/offsite_payments/integrations/paysbuy.rb, line 47 def item_id params['result'][2..-1] end
status()
click to toggle source
# File lib/offsite_payments/integrations/paysbuy.rb, line 51 def status status_code = params['result'][0..1] case status_code when SUCCESS 'Completed' when FAIL 'Failed' when PENDING 'Pending' else raise "Unknown status code" end end