Class: Payzilla::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/payzilla/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_caObject

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_certObject

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
  @attachment_cert
end

#attachment_keyObject

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_keyObject

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_keyObject

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_keyObject

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_keyObject

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_wsdlObject

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

#hostObject

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_agentObject

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_bankObject

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_clientObject

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_contractObject

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_currencyObject

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_dealerObject

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_idObject

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_domainObject

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_keyObject

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_hostObject

Returns the value of attribute setting_host.



139
140
141
# File 'lib/payzilla/config.rb', line 139

def setting_host
  @setting_host
end

#setting_keyObject

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_passwordObject

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_idObject

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_operatorObject

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_idObject

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_passwordObject

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_idObject

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_idObject

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_poingObject

Returns the value of attribute setting_poing.



139
140
141
# File 'lib/payzilla/config.rb', line 139

def setting_poing
  @setting_poing
end

#setting_pointObject

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_passwordObject

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_terminalObject

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_prefixObject

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_urlObject

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_wmidObject

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_modeObject

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