Class: Gateway::Mainpay

Inherits:
Gateway
  • Object
show all
Defined in:
app/models/gateway/mainpay.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.currentObject



13
14
15
# File 'app/models/gateway/mainpay.rb', line 13

def self.current
  self.where(:type => self.to_s, :environment => Rails.env, :active => true).first
end

Instance Method Details

#descObject



21
22
23
24
25
26
27
# File 'app/models/gateway/mainpay.rb', line 21

def desc
  "<p>
    <label>#{I18n.t('success_url')}:</label> http://[domain]/gateway/mainpay/success<br />
    <label>#{I18n.t('fail_url')}:</label> http://[domain]/gateway/mainpay/fail<br />
    <label>#{I18n.t('handler_url')}:</label> http://[domain]/gateway/mainpay/handler<br />
  </p>"
end

#input_urlObject



17
18
19
# File 'app/models/gateway/mainpay.rb', line 17

def input_url
  'https://partner.mainpay.ru/a1lite/input'
end

#method_typeObject



9
10
11
# File 'app/models/gateway/mainpay.rb', line 9

def method_type
  'mainpay'
end

#provider_classObject



5
6
7
# File 'app/models/gateway/mainpay.rb', line 5

def provider_class
  self.class
end