Skip to content

Instantly share code, notes, and snippets.

@satyatechsavy
Created October 12, 2010 11:27
Show Gist options
  • Save satyatechsavy/622038 to your computer and use it in GitHub Desktop.
Save satyatechsavy/622038 to your computer and use it in GitHub Desktop.
require 'httparty'
class ItunesVerification
include HTTParty
base_uri 'https://sandbox.itunes.apple.com'
default_params :output => 'json'
format :json
def self.verify_apple_receipt(apple_receipt)
post('/verifyReceipt', :body=>{'receipt-data' => apple_receipt})
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment