Class: Paymentwall::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/Paymentwall/Base.rb

Direct Known Subclasses

Pingback, Widget

Constant Summary collapse

VERSION =
'1.0.0'
API_VC =
1
API_GOODS =
2
API_CART =
3
CONTROLLER_PAYMENT_VIRTUAL_CURRENCY =
'ps'
CONTROLLER_PAYMENT_DIGITAL_GOODS =
'subscription'
CONTROLLER_PAYMENT_CART =
'cart'
DEFAULT_SIGNATURE_VERSION =
3
SIGNATURE_VERSION_1 =
1
SIGNATURE_VERSION_2 =
2
SIGNATURE_VERSION_3 =
3

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.getApiTypeObject



28
29
30
# File 'lib/Paymentwall/Base.rb', line 28

def self.getApiType
	@@apiType
end

.getAppKeyObject



37
38
39
# File 'lib/Paymentwall/Base.rb', line 37

def self.getAppKey
	@@appKey
end

.getSecretKeyObject



46
47
48
# File 'lib/Paymentwall/Base.rb', line 46

def self.getSecretKey
	@@secretKey
end

.setApiType(value) ⇒ Object



23
24
25
26
# File 'lib/Paymentwall/Base.rb', line 23

def self.setApiType(value)
	@@apiType = value
	self
end

.setAppKey(value) ⇒ Object



32
33
34
35
# File 'lib/Paymentwall/Base.rb', line 32

def self.setAppKey(value)
	@@appKey = value
	self
end

.setSecretKey(value) ⇒ Object



41
42
43
44
# File 'lib/Paymentwall/Base.rb', line 41

def self.setSecretKey(value)
	@@secretKey = value
	self
end

Instance Method Details

#getErrorsObject



50
51
52
# File 'lib/Paymentwall/Base.rb', line 50

def getErrors
	@errors
end

#getErrorSummaryObject



54
55
56
# File 'lib/Paymentwall/Base.rb', line 54

def getErrorSummary
	@errors.join("\n")
end