Sha256: bdd2055f2992288cc9f594feb606a68cd45b1ef2910903dbdbee84d18e2a194b
Contents?: true
Size: 248 Bytes
Versions: 4
Compression:
Stored size: 248 Bytes
Contents
require 'openssl' require 'base64' module Payg # Helper functions are defined here class Utility def self.base64_encode Base64.strict_encode64("#{Payg.auth[:key]}:#{Payg.auth[:token]}:M:#{Payg.auth[:merchant_id]}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
payg-0.1.2 | lib/payg/utility.rb |
payg-0.1.1 | lib/payg/utility.rb |
payg-0.1 | lib/payg/utility.rb |
payg-0.0.1 | lib/payg/utility.rb |