Sha256: 891b84b4b368e70995076e352a1e768b3e8106b668bc0f617c62af83330b00bb
Contents?: true
Size: 1.44 KB
Versions: 48
Compression:
Stored size: 1.44 KB
Contents
module ActiveMerchant #:nodoc: module Billing #:nodoc: module Integrations #:nodoc: # Documentation: # https://www.paxum.com/payment_docs/page.php?name=apiIntroduction module Paxum autoload :Helper, File.dirname(__FILE__) + '/paxum/helper.rb' autoload :Notification, File.dirname(__FILE__) + '/paxum/notification.rb' autoload :Return, File.dirname(__FILE__) + '/paxum/return.rb' autoload :Common, File.dirname(__FILE__) + '/paxum/common.rb' mattr_accessor :test_url self.test_url = 'https://paxum.com/payment/phrame.php?action=displayProcessPaymentLogin' mattr_accessor :production_url self.production_url = 'https://paxum.com/payment/phrame.php?action=displayProcessPaymentLogin' mattr_accessor :signature_parameter_name self.signature_parameter_name = 'key' def self.service_url mode = ActiveMerchant::Billing::Base.integration_mode case mode when :production self.production_url when :test self.test_url else raise StandardError, "Integration mode set to an invalid value: #{mode}" end end def self.helper(order, account, options = {}) Helper.new(order, account, options) end def self.notification(query_string, options = {}) Notification.new(query_string, options) end end end end end
Version data entries
48 entries across 48 versions & 4 rubygems