require 'httparty'

class IosReceiptValidator
  include HTTParty
  base_uri Rails.application.config.use_ios_sandbox ?  "https://sandbox.itunes.apple.com" : "https://buy.itunes.apple.com"
  default_params :output => 'json'
  format :json
end
