2020/02 (2) 썸네일형 리스트형 구글/iOS 인앱 결제 서버 검증 - PHP (In-app purchase server side verification in PHP) iOS /* recept { "Store":"AppleAppStore", "TransactionID":"1000000629303951", "Payload":"MIIT+QYJKoZIhvBFja19....BkpGkqEZQbQ8l8fNdoKPFRDc=" } */ function IOSInappPurchaseVerify($recept_from_appstore) { $json = array(); $json["error_code"] = 0; $json["error_message"] = "success"; $json["order_id"] = ""; $json["product_id"] = ""; $json["purchase_date"] = 0; $json["user_seq"] = 0; $json["char_num"] .. 구글/iOS 인앱 결제 서버 검증 - Python (In-app purchase server side verification in Python) iOS import urllib, urllib2 import json import datetime import base64 class IOSInappPurchaseVerifier : url = "https://sandbox.itunes.apple.com/verifyReceipt" password = "PASSWORD" # receipt data should be encoded by base64 def verify(self, receipt, signature) : req = { "receipt-data": receipt,"password": IOSInappPurchaseVerifier.password } headers = {'Content-Type': 'text/Json; charset=utf-8'} re.. 이전 1 다음