Sha256: 4f3cb2c1d03552f3f55efff5be78e5cc78de1b3b5e9fcd3115d0afab0996db6e
Contents?: true
Size: 542 Bytes
Versions: 2
Compression:
Stored size: 542 Bytes
Contents
require 'json' require 'active_support/core_ext' require 'restclient_with_ssl_support' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
itunes-receipt-0.0.2 | lib/itunes.rb |
itunes-receipt-0.0.1 | lib/itunes.rb |