module OffsitePayments::Integrations::PayFast

Documentation: www.payfast.co.za/s/std/integration-guide

Public Class Methods

helper(order, account, options = {}) click to toggle source
# File lib/offsite_payments/integrations/pay_fast.rb, line 49
def self.helper(order, account, options = {})
  Helper.new(order, account, options)
end
notification(query_string, options = {}) click to toggle source
# File lib/offsite_payments/integrations/pay_fast.rb, line 53
def self.notification(query_string, options = {})
  Notification.new(query_string, options)
end
return(post, options = {}) click to toggle source
# File lib/offsite_payments/integrations/pay_fast.rb, line 57
def self.return(post, options = {})
  Return.new(post, options)
end
service_url() click to toggle source
# File lib/offsite_payments/integrations/pay_fast.rb, line 25
def self.service_url
  mode = OffsitePayments.mode
  case mode
  when :production
    self.process_production_url
  when :test
    self.process_test_url
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end
validate_service_url() click to toggle source
# File lib/offsite_payments/integrations/pay_fast.rb, line 37
def self.validate_service_url
  mode = OffsitePayments.mode
  case mode
  when :production
    self.validate_production_url
  when :test
    self.validate_test_url
  else
    raise StandardError, "Integration mode set to an invalid value: #{mode}"
  end
end