Class: Paynow::Config
- Inherits:
-
Object
- Object
- Paynow::Config
- Defined in:
- lib/paynow/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
writeonly
Sets the attribute logger.
Class Method Summary collapse
- .client ⇒ Object
- .initiate_express_transaction_url ⇒ Object
- .initiate_transaction_url ⇒ Object
- .logger ⇒ Object
- .payment ⇒ Object
- .payment_builder ⇒ Object
Instance Attribute Details
#logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
16 17 18 |
# File 'lib/paynow/configuration.rb', line 16 def logger=(value) @logger = value end |
Class Method Details
.client ⇒ Object
19 20 21 |
# File 'lib/paynow/configuration.rb', line 19 def client Paynow::Client end |
.initiate_express_transaction_url ⇒ Object
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_url ⇒ Object
35 36 37 |
# File 'lib/paynow/configuration.rb', line 35 def initiate_transaction_url "https://www.paynow.co.zw/interface/initiatetransaction/" end |
.logger ⇒ Object
23 24 25 |
# File 'lib/paynow/configuration.rb', line 23 def logger @logger ||= Logger.new($stdout) end |
.payment ⇒ Object
27 28 29 |
# File 'lib/paynow/configuration.rb', line 27 def payment Paynow::Payment end |
.payment_builder ⇒ Object
31 32 33 |
# File 'lib/paynow/configuration.rb', line 31 def payment_builder Paynow::PaymentBuilder end |