b0VIM 7.37rP(2okubaprogrammer-ThinkCentre-M55~kuba/work/przelewy24_payment/lib/przelewy24_payment.rbutf-8 3210#"! UtpIad IicbF.-~hgfUF@?>, ] \ < 1 + *  y q k j O 1 N H G - | ] 7 A .    _ \ 9 end end end end end end end reendend end endend end end return calc_md5 (crc_key.nil? ? "" : crc_key.tend end end return calendend endend end end return calc_md5 (crc_key.nil? ? "" : crc_key.end end end rendend endend end end end return calc_md5 (crc_key.nil? ? "" : crc_key.to_s)) (p24_price(value)).to_s + "|" + (SELLER_ID).to_s + "|" + calc_md5 = Digest::MD5.hexdigest(session_id.to_s + "|" + def self.calculate_crc(value,session_id, crc_key=nil) end SecureRandom.base64(15).tr('+/=lIO0', 'aqrsxyz') def self.friendly_token end price.present? ? (price.to_f.round(2) * 100) : 0 def self.p24_price(price) end end 'https://secure.przelewy24.pl/index.php' elsif @mode == :production 'https://sandbox.przelewy24.pl/transakcja.php' if @@mode == :development def self.transaction_url end end 'https://secure.przelewy24.pl/index.php' elsif @@mode == :production 'https://sandbox.przelewy24.pl/index.php' if @@mode == :development def self.post_url end params def self.complete_url(params) COMPLETE_URL = 'http://localhost:3000/owner_advert/summary' COMEBACK_URL = 'http://localhost:3000/owner_advert/comeback' ERROR_URL = 'http://localhost:3000/owner_advert/comeback' MODE = :development LANGUAGE = 'pl' end yield self def self.setup @@comeback_url = '' mattr_accessor :comeback_url @@error_url = '' mattr_accessor :error_url @@mode = :development mattr_accessor :mode @@language = 'pl' mattr_accessor :language @@seller_id = '17329' mattr_accessor :seller_id end autoload :Przelewy24Payment, 'controllers/przelewy24_payment' module Controllersmodule Przelewy24Paymentrequire "przelewy24_payment/version"