codecombat/server/lib/apple_utils.coffee
Scott Erickson 23e3821e24 Switch from jasmine-node to jasmine, run server tests on a single process
This collapses the difference between master and single-process-server-tests, to
remove some larger fixtures files that were in that feature branch.
2015-12-09 14:27:10 -08:00

6 lines
237 B
CoffeeScript

config = require '../../server_config'
module.exports.verifyReceipt = (receipt, done) ->
formFields = { 'receipt-data': receipt }
request.post {url: config.apple.verifyURL, json: formFields}, (err, res, body) ->
done(err, body)