module Paypal
Constants
- ENDPOINT
- POPUP_ENDPOINT
Public Class Methods
endpoint()
click to toggle source
# File lib/paypal.rb, line 21 def self.endpoint if sandbox? Paypal::ENDPOINT[:sandbox] else Paypal::ENDPOINT[:production] end end
log(message, mode = :info)
click to toggle source
# File lib/paypal.rb, line 36 def self.log(message, mode = :info) self.logger.send mode, message end
logger()
click to toggle source
# File lib/paypal.rb, line 39 def self.logger @@logger end
logger=(logger)
click to toggle source
# File lib/paypal.rb, line 42 def self.logger=(logger) @@logger = logger end
popup_endpoint()
click to toggle source
# File lib/paypal.rb, line 28 def self.popup_endpoint if sandbox? Paypal::POPUP_ENDPOINT[:sandbox] else Paypal::POPUP_ENDPOINT[:production] end end
sandbox!()
click to toggle source
# File lib/paypal.rb, line 51 def self.sandbox! self.sandbox = true end
sandbox=(boolean)
click to toggle source
# File lib/paypal.rb, line 54 def self.sandbox=(boolean) @@sandbox = boolean end
sandbox?()
click to toggle source
# File lib/paypal.rb, line 48 def self.sandbox? @@sandbox end