Module: UnlockMoip::Models::Gateway
- Includes:
- UnlockGateway::Models::Gateway
- Defined in:
- lib/unlock_moip/models/gateway.rb
Instance Method Summary collapse
- #available_settings ⇒ Object
- #description ⇒ Object
- #image ⇒ Object
- #name ⇒ Object
- #path ⇒ Object
- #url ⇒ Object
Instance Method Details
#available_settings ⇒ Object
27 28 29 30 31 32 |
# File 'lib/unlock_moip/models/gateway.rb', line 27 def available_settings settings = [] instructions = "Com sua conta de negócios Moip habilitada, vá em <a href='https://www.moip.com.br/AdmMainMenuMyData.do?method=assinaturas' target='_blank'>Ferramentas › Moip Assinaturas</a> e clique em Habilitar acesso. Depois, vá em <a href='https://www.moip.com.br/AdmAPI.do?method=keys' target='_blank'>Ferramentas › API Moip › Chaves de acesso</a>." settings << UnlockGateway::Setting.new(:token, "Token de acesso no Moip", instructions) settings << UnlockGateway::Setting.new(:key, "Chave de acesso no Moip", instructions) end |
#description ⇒ Object
11 12 13 |
# File 'lib/unlock_moip/models/gateway.rb', line 11 def description "Gerencie mensalidades, assinaturas e cobranças recorrentes com o Moip" end |
#image ⇒ Object
15 16 17 |
# File 'lib/unlock_moip/models/gateway.rb', line 15 def image "unlock_moip/logo.png" end |
#name ⇒ Object
7 8 9 |
# File 'lib/unlock_moip/models/gateway.rb', line 7 def name "Moip Assinaturas" end |
#path ⇒ Object
23 24 25 |
# File 'lib/unlock_moip/models/gateway.rb', line 23 def path "/moip" end |
#url ⇒ Object
19 20 21 |
# File 'lib/unlock_moip/models/gateway.rb', line 19 def url "https://moip.com.br/" end |