Module: UnlockPaypal::Models::Gateway
- Includes:
- UnlockGateway::Models::Gateway
- Defined in:
- lib/unlock_paypal/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 33 |
# File 'lib/unlock_paypal/models/gateway.rb', line 27 def available_settings settings = [] instructions = I18n.t('unlock_paypal.models.gateway.available_settings.instructions') settings << UnlockGateway::Setting.new(:username, I18n.t('unlock_paypal.models.gateway.available_settings.username'), instructions) settings << UnlockGateway::Setting.new(:password, I18n.t('unlock_paypal.models.gateway.available_settings.password'), instructions) settings << UnlockGateway::Setting.new(:signature, I18n.t('unlock_paypal.models.gateway.available_settings.signature'), instructions) end |
#description ⇒ Object
11 12 13 |
# File 'lib/unlock_paypal/models/gateway.rb', line 11 def description I18n.t('unlock_paypal.models.gateway.description') end |
#image ⇒ Object
15 16 17 |
# File 'lib/unlock_paypal/models/gateway.rb', line 15 def image "unlock_paypal/logo.png" end |
#name ⇒ Object
7 8 9 |
# File 'lib/unlock_paypal/models/gateway.rb', line 7 def name "PayPal" end |
#path ⇒ Object
23 24 25 |
# File 'lib/unlock_paypal/models/gateway.rb', line 23 def path "/paypal" end |
#url ⇒ Object
19 20 21 |
# File 'lib/unlock_paypal/models/gateway.rb', line 19 def url "https://www.paypal.com" end |