Module: UnlockPaypal::Models::Gateway

Includes:
UnlockGateway::Models::Gateway
Defined in:
lib/unlock_paypal/models/gateway.rb

Instance Method Summary collapse

Instance Method Details

#available_settingsObject



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

#descriptionObject



11
12
13
# File 'lib/unlock_paypal/models/gateway.rb', line 11

def description
  I18n.t('unlock_paypal.models.gateway.description')
end

#imageObject



15
16
17
# File 'lib/unlock_paypal/models/gateway.rb', line 15

def image
  "unlock_paypal/logo.png"
end

#nameObject



7
8
9
# File 'lib/unlock_paypal/models/gateway.rb', line 7

def name
  "PayPal"
end

#pathObject



23
24
25
# File 'lib/unlock_paypal/models/gateway.rb', line 23

def path
  "/paypal"
end

#urlObject



19
20
21
# File 'lib/unlock_paypal/models/gateway.rb', line 19

def url
  "https://www.paypal.com"
end