Created
October 12, 2010 11:27
-
-
Save satyatechsavy/622038 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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