class Paymentwall::Base
Constants
- API_CART
- API_GOODS
- API_VC
- CONTROLLER_PAYMENT_CART
- CONTROLLER_PAYMENT_DIGITAL_GOODS
- CONTROLLER_PAYMENT_VIRTUAL_CURRENCY
- DEFAULT_SIGNATURE_VERSION
- SIGNATURE_VERSION_1
- SIGNATURE_VERSION_2
- SIGNATURE_VERSION_3
- VERSION
Public Class Methods
getApiType()
click to toggle source
# File lib/Paymentwall/Base.rb, line 28 def self.getApiType @@apiType.to_i end
getAppKey()
click to toggle source
# File lib/Paymentwall/Base.rb, line 37 def self.getAppKey @@appKey.to_s end
getSecretKey()
click to toggle source
# File lib/Paymentwall/Base.rb, line 46 def self.getSecretKey @@secretKey.to_s end
setApiType(value)
click to toggle source
# File lib/Paymentwall/Base.rb, line 23 def self.setApiType(value) @@apiType = value self end
setAppKey(value)
click to toggle source
# File lib/Paymentwall/Base.rb, line 32 def self.setAppKey(value) @@appKey = value self end
setSecretKey(value)
click to toggle source
# File lib/Paymentwall/Base.rb, line 41 def self.setSecretKey(value) @@secretKey = value self end
Public Instance Methods
getErrorSummary()
click to toggle source
# File lib/Paymentwall/Base.rb, line 54 def getErrorSummary @errors.join("\n") end
getErrors()
click to toggle source
# File lib/Paymentwall/Base.rb, line 50 def getErrors @errors end
Protected Instance Methods
appendToErrors(err)
click to toggle source
# File lib/Paymentwall/Base.rb, line 60 def appendToErrors(err) @errors ||=[] @errors.push(err) self end