)驗證。
)驗證。
蘋果反饋的狀態碼: 2
1000
2100
2收據資料不符合格式 21
003收據無法被驗證 21
004你提供的共享金鑰和賬戶的共享金鑰不一致 21
005收據伺服器當前不可用 21
006收據是有效的,但訂閱服務已經過期。當收到這個資訊時,解碼後的收據資訊也包含在返回內容中 21
007收據資訊是測試用(sandbox),但卻被傳送到產品環境中驗證 21
008收據資訊是產品環境中使用,但卻被傳送到測試環境中驗證
接手的專案是外包專案,後端否認在
交涉無果只能在前端驗證:
#pragma mark
客戶端驗證購買憑據
- (void
)verifytransactionresult ;
nserror
*error;
// 轉換為json格式
nsdata
*requestdata = [
nsjsonserialization
datawithjsonobject
:requestcontents
options:0
error
:&error];
// 不存在
if(!requestdata)
// 傳送網路
post
請求,對購買憑據進行驗證
nsstring
*verifyurlstring;
verifyurlstring = ;
#else ";
#endif
// 國內訪問蘋果伺服器比較慢,
timeoutinterval
需要長一點
// 在後台對列中提交驗證請求,並獲得官方的驗證
json結果
nsoperationqueue
*queue = [[
nsoperationqueue
alloc
] init];
[nsurlconnection
sendasynchronousrequest
:storerequest
queue
:queue
completionhandler
:^(nsurlresponse
*response,
nsdata
*data,
nserror
*connectionerror)
else
//比對
jsonresponse
中以下資訊基本上可以保證資料安全 /*
bundle_id
product_id
transaction_id */
nslog(@"
驗證成功");
}}];
}
iOS 內購被拒問題
when validating receipts on your server,your server needs to be able to validation fails with the error code sandbox receipt used in production,you sh...
iOS 審核因為「內購」被拒的解決方案!
蘋果審核支付功能哪些屬於內購哪些不屬於內購?1.首先,我們要知道哪些是產品需要內購,哪些不需要內購 1.我們可以做兩套介面,一套介面是我們提供給審核人員用的介面,一套是我們審核之後上線的介面 這個方法儘管麻煩,但是能夠很好的應付審核 3.我們也可以審核的時候走內購,等上線之後再用h5代替內購等方法 ...
iOS 內購上線被拒問題
我的csdn qq技術群 549943887 github 首先內購確實挺坑,分紅為3 7,蘋果拿走 30。這個內購專案整合好了,沙盒測試也沒問題了,所以開始準備提交了,把內購專案也按要求填寫好了。第一次提交,被拒,反饋 specifically,the loading indicator spun...