Re: [問題]IAP交易驗證

看板MacDev作者 (白毛)時間11年前 (2014/07/17 14:47), 11年前編輯推噓1(104)
留言5則, 2人參與, 最新討論串2/2 (看更多)
檢查一下你送的URL對不對 sandbox跟production要送不一樣的URL What url should I use to verify my receipt ? Use the sandbox URL https://sandbox.itunes.apple.com/verifyReceipt while testing your application in the sandbox and while your application is in review. Use the production URL https://buy.itunes.apple.com/verifyReceipt once your application is live in the App Store. https://developer.apple.com/library/ios/technotes/tn2259/_index.html#//apple_ref/doc/uid/DTS40009578-CH1-FREQUENTLY_ASKED_QUESTIONS -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.230.64.215 ※ 文章網址: http://www.ptt.cc/bbs/MacDev/M.1405579630.A.E3B.html ※ 編輯: whitefur (61.230.64.215), 07/17/2014 14:48:14

07/17 15:48, , 1F
我是送到sandbox去做測試
07/17 15:48, 1F

07/17 16:08, , 2F
error code?
07/17 16:08, 2F

07/18 10:05, , 3F
21002
07/18 10:05, 3F

07/18 10:06, , 4F
不過改用google的插件 postman 可以驗證成功
07/18 10:06, 4F

07/18 14:57, , 5F
http POST 的 content-type 要指定 application/json
07/18 14:57, 5F
文章代碼(AID): #1Jnt5kux (MacDev)
文章代碼(AID): #1Jnt5kux (MacDev)