import requests // bundle_id = "com.MyCompany.MyApp" // URL ( ). // : "https://buy.itunes.apple.com/verifyReceipt" url = "https://sandbox.itunes.apple.com/verifyReceipt" // receipt = GetRequestParam("receipt") // Apple resp = requests.post(url,receipt) response = resp.json() // if response["status"] != 0: return "Error" response = response["receipt"] // if response["bundle_id"] != bundle_id: return "Error" // package = response["in_app"][0] productId = package["product_id"] transaction_id = package["transaction_id"] UserID = GetRequestParams("UserID") // // . // ,
Source: https://habr.com/ru/post/254257/
All Articles