require 'paypal-sdk-core'
require 'paypal-sdk-merchant'

PayPal::SDK.configure(
    :mode => Rails.configuration.paypal_mode,
    :username => Rails.configuration.paypal_username,
    :password => Rails.configuration.paypal_password,
    :signature => Rails.configuration.paypal_signature,
    :ssl_options => { ca_file: nil } )

# :client_id => Rails.configuration.paypal_client_id,
# :client_secret => Rails.configuration.paypal_client_secret,


    PayPal::SDK.logger = Logging.logger['PayPal']
PayPal::SDK.logger.level = Rails.configuration.paypal_debug ? Logger::DEBUG : Logger::INFO