Sha256: 3743c3e70fa8a266a9cfcf5fb647a3e755fc8ae86d88889757b1b754354ac73a
Contents?: true
Size: 535 Bytes
Versions: 4
Compression:
Stored size: 535 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 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
itunes-receipt-0.1.0 | lib/itunes.rb |
itunes-receipt-0.0.5 | lib/itunes.rb |
itunes-receipt-0.0.4 | lib/itunes.rb |
itunes-receipt-0.0.3 | lib/itunes.rb |