Class: Paynow::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/paynow/configuration.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



16
17
18
# File 'lib/paynow/configuration.rb', line 16

def logger=(value)
  @logger = value
end

Class Method Details

.clientObject



19
20
21
# File 'lib/paynow/configuration.rb', line 19

def client
  Paynow::Client
end

.initiate_express_transaction_urlObject



39
40
41
# File 'lib/paynow/configuration.rb', line 39

def initiate_express_transaction_url
  "https://www.paynow.co.zw/interface/remotetransaction/"
end

.initiate_transaction_urlObject



35
36
37
# File 'lib/paynow/configuration.rb', line 35

def initiate_transaction_url
  "https://www.paynow.co.zw/interface/initiatetransaction/"
end

.loggerObject



23
24
25
# File 'lib/paynow/configuration.rb', line 23

def logger
  @logger ||= Logger.new($stdout)
end

.paymentObject



27
28
29
# File 'lib/paynow/configuration.rb', line 27

def payment
  Paynow::Payment
end

.payment_builderObject



31
32
33
# File 'lib/paynow/configuration.rb', line 31

def payment_builder
  Paynow::PaymentBuilder
end