Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let receiptUrl = Bundle.main.appStoreReceiptURL
- let receiptdata: NSData = try! NSData(contentsOf:receiptUrl!)
- let request = NSMutableURLRequest(url: NSURL(string: "https://etc/verifyReceipt.php")! as URL)
- let session = URLSession.shared
- request.httpMethod = "POST"
- request.httpBody = receiptdata as Data
- let task = session.dataTask(with: request as URLRequest, completionHandler: {data, response, error -> Void in ...
Add Comment
Please, Sign In to add comment