Sha256: 0509a5ff1c0f2031de4c7e16452e5420e3c3815c94dc8732c6b4a7eb64c93d27
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
require 'json' require 'active_support/core_ext' require 'restclient_with_cert' module Itunes ENDPOINT = { :production => 'https://buy.itunes.apple.com/verifyReceipt', :sandbox => 'https://sandbox.itunes.apple.com/verifyReceipt' } def self.endpoint if sandbox? ENDPOINT[:sandbox] else ENDPOINT[:production] end end def self.sandbox? @@sandbox end def self.sandbox! self.sandbox = true end def self.sandbox=(boolean) @@sandbox = boolean end self.sandbox = false def self.shared_secret @@shared_secret end def self.shared_secret=(shared_secret) @@shared_secret = shared_secret end self.shared_secret = nil end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
itunes-receipt-0.1.1 | lib/itunes.rb |