class PayPal::PayPalEnvironment

Attributes

client_id[RW]
client_secret[RW]
web_url[RW]

Public Class Methods

new(client_id, client_secret, base_url, web_url) click to toggle source
Calls superclass method
# File lib/core/paypal_environment.rb, line 14
def initialize(client_id, client_secret, base_url, web_url)
  super(base_url)
  @client_id = client_id
  @client_secret = client_secret
  @web_url = web_url
end

Public Instance Methods

authorizationString() click to toggle source
# File lib/core/paypal_environment.rb, line 21
def authorizationString
  encoded = Base64.strict_encode64("#{@client_id}:#{@client_secret}")
  return "Basic #{encoded}"
end