Class: Payzilla::Config
- Inherits:
-
Object
- Object
- Payzilla::Config
- Defined in:
- lib/payzilla/config.rb
Instance Attribute Summary collapse
-
#attachment_ca ⇒ Object
Certificate autority file * Matrix * Yota.
-
#attachment_cert ⇒ Object
File, that contains X509 certificate Used by: * Akado * Beeline * Matrix * Megafon * Rapida * Webmoney * Yota.
-
#attachment_key ⇒ Object
File with keypair Used by: * Matrix * Megafon * Webmoney * Yota.
-
#attachment_private_key ⇒ Object
Private key file Used by: * Cyberplat * Rapida.
-
#attachment_public_key ⇒ Object
Public key file Used by: * Cyberplat * Yamoney.
-
#attachment_secret_key ⇒ Object
Secret key file Used by: * Yamoney.
-
#attachment_signature_key ⇒ Object
File with keypair, that is needed to generate signature Used by: * MTS.
-
#attachment_wsdl ⇒ Object
WSDL file Used by: * Beeline.
-
#host ⇒ Object
Carrier server URL where data will be sent Used by: * Cyberplat.
-
#setting_agent ⇒ Object
Agent identifier _Get this info from carrier_ Used by: * MTS.
-
#setting_bank ⇒ Object
Bank identifier Used by: * Akado.
-
#setting_client ⇒ Object
Client identifier.
-
#setting_contract ⇒ Object
Contract identifier _Get this info from carrier_ Used by: * MTS.
-
#setting_currency ⇒ Object
Carrier’s currency code Used by: * Yamoney.
-
#setting_dealer ⇒ Object
Dealer identifier Used by: * Cyberplat.
-
#setting_dealer_id ⇒ Object
Dealer identifier Used by: * Matrix.
-
#setting_domain ⇒ Object
Carrier server URL where data will be sent Used by: * Megafon * OSMP.
-
#setting_gpg_key ⇒ Object
GPG key Used by: * Yamoney.
-
#setting_host ⇒ Object
Returns the value of attribute setting_host.
-
#setting_key ⇒ Object
Key Used by: * Mailru.
-
#setting_key_password ⇒ Object
Password, that is needed for decrypt encrypted key Used by: * Akado * Cyberplat * Matrix * MTS * Rapida * Webmoney.
-
#setting_kiosk_id ⇒ Object
Kiosk identifier Used by: * Webmoney.
-
#setting_operator ⇒ Object
Acceptance point operator identifier Used by: * Ceberplat.
-
#setting_partner_id ⇒ Object
Partner identifier Used by: * Beeline.
-
#setting_password ⇒ Object
Password, that will be sent with payment Used by: * Megafon * OSMP * Yamoney.
-
#setting_payment_poind_id ⇒ Object
Returns the value of attribute setting_payment_poind_id.
-
#setting_payment_point_id ⇒ Object
Accepting payments point identifier Used by: * Beeline.
-
#setting_poing ⇒ Object
Returns the value of attribute setting_poing.
-
#setting_point ⇒ Object
Acceptance point identifier Used by: * Cyberplat.
-
#setting_signature_key_password ⇒ Object
Password, that is neede to decrypt encrypted signature key _Get this info from carrier_ Used by: * MTS * Yota.
-
#setting_terminal ⇒ Object
Terminal identifier Used by: * OSMP.
-
#setting_terminal_prefix ⇒ Object
Some prefix, that would be added to your current kiosk name Used by: * MTS.
-
#setting_url ⇒ Object
Carrier server URL where data will be sent Used by: * Beeline * Matrix * MTS * Rapida * Skylink * Webmoney * Yota.
-
#setting_wmid ⇒ Object
WebMoney identifier Used by: * Webmoney.
-
#switch_test_mode ⇒ Object
Switch to the testing mode Used by: * Webmoney.
Instance Method Summary collapse
-
#initialize(carrier, config = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(carrier, config = {}) ⇒ Config
Returns a new instance of Config.
209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
# File 'lib/payzilla/config.rb', line 209 def initialize(carrier, config={}) config = if config.kind_of?(Hash) {carrier => config} else ::YAML.load_file(config) end begin config[carrier].each{|k,v| send "#{k}=", v} rescue NoMethodError => e puts "No such carrier in yaml config file" puts e end end |
Instance Attribute Details
#attachment_ca ⇒ Object
Certificate autority file
-
Matrix
-
Yota
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_cert ⇒ Object
File, that contains X509 certificate Used by:
-
Akado
-
Beeline
-
Matrix
-
Megafon
-
Rapida
-
Webmoney
-
Yota
198 199 200 |
# File 'lib/payzilla/config.rb', line 198 def @attachment_cert end |
#attachment_key ⇒ Object
File with keypair Used by:
-
Matrix
-
Megafon
-
Webmoney
-
Yota
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_private_key ⇒ Object
Private key file Used by:
-
Cyberplat
-
Rapida
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_public_key ⇒ Object
Public key file Used by:
-
Cyberplat
-
Yamoney
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_secret_key ⇒ Object
Secret key file Used by:
-
Yamoney
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_signature_key ⇒ Object
File with keypair, that is needed to generate signature Used by:
-
MTS
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#attachment_wsdl ⇒ Object
WSDL file Used by:
-
Beeline
198 199 200 201 |
# File 'lib/payzilla/config.rb', line 198 attr_accessor :attachment_cert, :attachment_key, :attachment_ca, :attachment_wsdl, :attachment_private_key, :attachment_public_key, :attachment_signature_key, :attachment_secret_key |
#host ⇒ Object
Carrier server URL where data will be sent Used by:
-
Cyberplat
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_agent ⇒ Object
Agent identifier _Get this info from carrier_ Used by:
-
MTS
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_bank ⇒ Object
Bank identifier Used by:
-
Akado
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_client ⇒ Object
Client identifier. To get this, speak with carrier support. Used by:
-
Megafon
-
OSMP
-
Skylink
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_contract ⇒ Object
Contract identifier _Get this info from carrier_ Used by:
-
MTS
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_currency ⇒ Object
Carrier’s currency code Used by:
-
Yamoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_dealer ⇒ Object
Dealer identifier Used by:
-
Cyberplat
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_dealer_id ⇒ Object
Dealer identifier Used by:
-
Matrix
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_domain ⇒ Object
Carrier server URL where data will be sent Used by:
-
Megafon
-
OSMP
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_gpg_key ⇒ Object
GPG key Used by:
-
Yamoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_host ⇒ Object
Returns the value of attribute setting_host.
139 140 141 |
# File 'lib/payzilla/config.rb', line 139 def setting_host @setting_host end |
#setting_key ⇒ Object
Key Used by:
-
Mailru
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_key_password ⇒ Object
Password, that is needed for decrypt encrypted key Used by:
-
Akado
-
Cyberplat
-
Matrix
-
MTS
-
Rapida
-
Webmoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_kiosk_id ⇒ Object
Kiosk identifier Used by:
-
Webmoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_operator ⇒ Object
Acceptance point operator identifier Used by:
-
Ceberplat
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_partner_id ⇒ Object
Partner identifier Used by:
-
Beeline
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_password ⇒ Object
Password, that will be sent with payment Used by:
-
Megafon
-
OSMP
-
Yamoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_payment_poind_id ⇒ Object
Returns the value of attribute setting_payment_poind_id.
139 140 141 |
# File 'lib/payzilla/config.rb', line 139 def setting_payment_poind_id @setting_payment_poind_id end |
#setting_payment_point_id ⇒ Object
Accepting payments point identifier Used by:
-
Beeline
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_poing ⇒ Object
Returns the value of attribute setting_poing.
139 140 141 |
# File 'lib/payzilla/config.rb', line 139 def setting_poing @setting_poing end |
#setting_point ⇒ Object
Acceptance point identifier Used by:
-
Cyberplat
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_signature_key_password ⇒ Object
Password, that is neede to decrypt encrypted signature key _Get this info from carrier_ Used by:
-
MTS
-
Yota
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_terminal ⇒ Object
Terminal identifier Used by:
-
OSMP
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_terminal_prefix ⇒ Object
Some prefix, that would be added to your current kiosk name Used by:
-
MTS
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#setting_url ⇒ Object
Carrier server URL where data will be sent Used by:
-
Beeline
-
Matrix
-
MTS
-
Rapida
-
Skylink
-
Webmoney
-
Yota
139 140 141 |
# File 'lib/payzilla/config.rb', line 139 def setting_url @setting_url end |
#setting_wmid ⇒ Object
WebMoney identifier Used by:
-
Webmoney
139 140 141 142 143 144 145 146 |
# File 'lib/payzilla/config.rb', line 139 attr_accessor :setting_url, :setting_bank, :setting_key_password, :setting_partner_id, :setting_payment_poind_id, :setting_host, :setting_operator, :setting_poing, :setting_dealer, :setting_key, :setting_dealer_id, :setting_domain, :setting_client, :setting_password, :setting_agent, :setting_contract, :setting_signature_key_password, :setting_terminal_prefix, :setting_terminal, :setting_wmid, :setting_kiosk_id, :setting_currency, :setting_gpg_key |
#switch_test_mode ⇒ Object
Switch to the testing mode Used by:
-
Webmoney
207 208 209 |
# File 'lib/payzilla/config.rb', line 207 def switch_test_mode @switch_test_mode end |