class Yukon::CredentialsChecker

Public Class Methods

check(login, password, signature) click to toggle source

Wrong login, password or signature results in response.message : “Security header is not valid”

# File lib/yukon/credentials_checker.rb, line 5
def self.check(login, password, signature)
  Yukon.configuration do |config|
    config.login     = login
    config.password  = password
    config.signature = signature
    config.mode      = :test
  end
  
  payment_processor = PaymentProcessor.new('sell_1342421142_biz@gmail.com')
  response = payment_processor.set_express_checkout(200, 
                                                   '127.0.0.1', 
                                                   'http://www.rubyplus.com', 
                                                   'http://www.rubyplus.com/about', 
                                                   'custom')        
  response.success?        
end