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