Class: Paymentwall::Base
- Inherits:
-
Object
- Object
- Paymentwall::Base
- Defined in:
- lib/Paymentwall/Base.rb
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
- .getApiType ⇒ Object
- .getAppKey ⇒ Object
- .getSecretKey ⇒ Object
- .setApiType(value) ⇒ Object
- .setAppKey(value) ⇒ Object
- .setSecretKey(value) ⇒ Object
Instance Method Summary collapse
Class Method Details
.getApiType ⇒ Object
28 29 30 |
# File 'lib/Paymentwall/Base.rb', line 28 def self.getApiType @@apiType end |
.getAppKey ⇒ Object
37 38 39 |
# File 'lib/Paymentwall/Base.rb', line 37 def self.getAppKey @@appKey end |
.getSecretKey ⇒ Object
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
#getErrors ⇒ Object
50 51 52 |
# File 'lib/Paymentwall/Base.rb', line 50 def getErrors @errors end |
#getErrorSummary ⇒ Object
54 55 56 |
# File 'lib/Paymentwall/Base.rb', line 54 def getErrorSummary @errors.join("\n") end |