Re: [問題]IAP交易驗證

作者: whitefur (白毛)   2014-07-17 14:47:07
檢查一下你送的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
作者: Cartel117 (無)   2014-07-17 15:48:00
我是送到sandbox去做測試
作者: whitefur (白毛)   2014-07-17 16:08:00
error code?
作者: Cartel117 (無)   2014-07-18 10:05:00
21002不過改用google的插件 postman 可以驗證成功
作者: whitefur (白毛)   2014-07-18 14:57:00
http POST 的 content-type 要指定 application/json

Links booklink

Contact Us: admin [ a t ] ucptt.com