Class: Saman::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/saman/configuration.rb

Overview

configure class

Instance Attribute Summary collapse

Instance Attribute Details

#authorize_addressObject



27
28
29
# File 'lib/saman/configuration.rb', line 27

def authorize_address
  @authorize_address || 'https://sep.shaparak.ir/MobilePG/MobilePayment'
end

#authorize_wsdlObject



35
36
37
# File 'lib/saman/configuration.rb', line 35

def authorize_wsdl
  @authorize_wsdl || 'https://sep.shaparak.ir/payments/initpayment.asmx?wsdl'
end

#passwordObject

Returns the value of attribute password.



17
18
19
# File 'lib/saman/configuration.rb', line 17

def password
  @password
end

#proxyObject

Returns the value of attribute proxy.



18
19
20
# File 'lib/saman/configuration.rb', line 18

def proxy
  @proxy
end

#retry_countObject



39
40
41
# File 'lib/saman/configuration.rb', line 39

def retry_count
  @retry_count || 3
end

#terminal_id_defaultObject

Returns the value of attribute terminal_id_default.



19
20
21
# File 'lib/saman/configuration.rb', line 19

def terminal_id_default
  @terminal_id_default
end

#terminal_id_wage_onlyObject

Returns the value of attribute terminal_id_wage_only.



21
22
23
# File 'lib/saman/configuration.rb', line 21

def terminal_id_wage_only
  @terminal_id_wage_only
end

#terminal_id_with_wageObject

Returns the value of attribute terminal_id_with_wage.



20
21
22
# File 'lib/saman/configuration.rb', line 20

def terminal_id_with_wage
  @terminal_id_with_wage
end

#usernameObject

Returns the value of attribute username.



16
17
18
# File 'lib/saman/configuration.rb', line 16

def username
  @username
end

#verify_wsdlObject



31
32
33
# File 'lib/saman/configuration.rb', line 31

def verify_wsdl
  @verify_wsdl || 'https://verify.sep.ir/payments/referencepayment.asmx?wsdl'
end