重新验证收据

时间:2012-07-28 11:07:38

标签: iphone ios ios4 itunes

我已成功通过Apple服务器验证我的沙箱收据以进行自动续订。我已将Apple服务器返回的最新收据内容存储到我的php服务器端。

现在,当我尝试重新验证存储的收据以进行检查时仍然有效,对苹果服务器,我正在接收{"status":21002, "exception":java.lang.IlegalArgumentException"}

请让我知道我存储苹果服务器返回的收据数据的错误部分吗?

仅在重新验证收据时才会遇到此问题。

感谢您停下来

更新

收据":{" original_purchase_date_pst":" 2012-07-24 05:41:19 America / Los_Angeles"," unique_identifier&#34 ;:" 46f070c011e0da17bc168ae9d3901dcf961f8c09"," original_transaction_id":" 1000000053343936"," expires_date":" 1343135478998",&#34 ; transaction_id":" 1000000053343936","数量":" 1"," product_id":" com.XX。 XXX"," original_purchase_date_ms":" 1343133679239"," bid":" com.XX.XXX"," web_order_line_item_id& #34;:" 1000000026126403"," bvrs":" 1.0"," expires_date_formatted":" 2012-07-24 13:11:18 Etc / GMT"," purchase_date":" 2012-07-24 12:41:18 Etc / GMT"," purchase_date_ms" :" 1343133678998"," expires_date_formatted_pst":" 2012-07-24 06:11:18 America / Los_Angeles"," purchase_date_pst":& #34; 2012-07-24 05:41:18 America / Los_Angeles"," original_purchase_date&#3 4;:" 2012-07-24 12:41:19 Etc / GMT"," item_id":" 547592716"}," latest_receipt_info&#34 ;:{" original_purchase_date_pst":" 2012-07-24 05:41:19 America / Los_Angeles"," unique_identifier":" 46f070c011e0da17bc168ae9d3901dcf961f8c09" ," original_transaction_id":" 1000000053343936"," expires_date":" 1343135478000"," transaction_id":" 1000000053343936","数量":" 1"," product_id":" com.XX.XXX"," original_purchase_date_ms& #34;:" 1343133679000","出价":" com.XX.XXX"," web_order_line_item_id":" 1000000026126403&# 34;," bvrs":" 1.0"," expires_date_formatted":" 2012-07-24 13:11:18 Etc / GMT&#34 ;," purchase_date":" 2012-07-24 12:41:18 Etc / GMT"," purchase_date_ms":" 1343133678000", " expires_date_formatted_pst":" 2012-07-24 06:11:18 America / Los_Angeles"," purchase_date _pst":" 2012-07-24 05:41:18 America / Los_Angeles"," original_purchase_date":" 2012-07-24 12:41:19等/ GMT"," item_id":" 547592716"}," status":0," latest_receipt":" UFrR0ExVUVCaE1DVlZNd2daOHdEUVlKS29aSWh2Y05BUUVCQlFBRGdZMEFNSUdKQW9HQkFNclJqRjJjdDRJclNkaVRDaGFJMGc4cHd2L2NtSHM4cC9Sd1YvcnQvOTFYS1ZoTmw0WElCaW1LalFRTmZnSHNEczZ5anUrK0RyS0pFN3VLc3BoTWRkS1lmRkU1ckdYc0FkQkVqQndSSXhleFRldngzSExFRkdBdDFtb0t4NTA5ZGh4dGlJZERnSnYyWWFWczQ5QjB1SnZOZHk2U01xTk5MSHNETHpEUzlvWkhBZ01CQUFHamNqQndNQXdHQTFVZEV3RUIvd1FDTUFBd0h3WURWUjBqQkJnd0ZvQVVOaDNvNHAyQzBnRVl0VEpyRHRkREM1RllRem93RGdZRFZSMFBBUUgvQkFRREFnZUFNQjBHQTFVZERnUVdCQlNwZzRQeUdVakZQaEpYQ0JUTXphTittVjhrOVRBUUJnb3Foa2lHOTJOa0JnVUJCQUlGQURBTkJna3Foa2lHOXcwQkFRVUZBQU9DQVFFQUVhU2JQanRtTjRDL0lCM1FFcEszMlJ4YWNDRFhkVlhBZVZSZVM1RmFaeGMrdDg4cFFQOTNCaUF4dmRXLzNlVFNNR1k1RmJlQVlMM2V0cVA1Z204d3JGb2pYMGlreVZSU3RRKy9BUTBLRWp0cUIwN2tMczlRVWU4Y3pSOFVHZmRNMUV1bVYvVWd2RGQ0TndOWXhMUU1nNFdUUWZna1FRVnk4R1had1ZIZ2JFL1VDNlk3MDUzcEdYQms1MU5QTTN3b3hoZDNnU1JMdlhqK2xvSHNTdGNURXFlOXBCRHBtRzUrc2s0dHcrR0szR01lRU41LytlMVFUOW5wL0tsMW5qK2FCdzdDMHhzeTBiRm5hQWQxY1NTNnhkb3J5L0NVdk02Z3RLc21uT09kcVRlc2JwMGJzOHNuNldxczBDOWR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1URTZNVGdnUlhSakwwZE5WQ0k3Q2draWNISnZaSFZqZEMxcFpDSWdQU0FpWTI5dExtaHZhUzUwWlhOMExuTmhiWEJzWlhCdlpXMTBlWEJsTG5OcGVHMXZiblJvY3lJN0Nna2ljSFZ5WTJoaGMyVXRaR0YwWlNJZ1BTQWlNakF4TWkwd055MHlOQ0F4TWpvME1Ub3hPQ0JGZEdNdlIwMVVJanNLQ1NKdmNtbG5hVzVoYkMxd2RYSmphR0Z6WlMxa1lYUmxJaUE5SUNJeU1ERXlMVEEzTFRJMElERXlPalF4T2pFNUlFVjBZeTlIVFZRaU93b0pJbUpwWkNJZ1BTQWlZMjl0TG1GdVoyeGxjaTVvYjJscGJtRndjSEIxY21Ob1lYTmxkR1Z6ZEdsdVp5STdDZ2tpY0hWeVkyaGhjMlV0WkdGMFpTMXdjM1FpSUQwZ0lqSXdNVEl0TURjd​​E1qUWdNRFU2TkRFNk1UZ2dRVzFsY21sallTOU1iM05mUVc1blpXeGxjeUk3Q2draWNYVmhiblJwZEhraUlEMGdJakVpT3dwOSI7CgkiZW52aXJvbm1lbnQiID0gIlNhbmRib3giOwoJInBvZCIgPSAiMTAwIjsKCSJzaWduaW5nLXN0YXR1cyIgPSAiMCI7Cn0"

1 个答案:

答案 0 :(得分:1)

21002是“收据数据属性中的数据格式错误。”。这意味着收据数据未正确编码。 TEXT数据类型是问题,您应该将其存储为二进制基数64编码。

好的,我有链接,你可能会发现有用。使用this验证您的收据数据。检查this& this个问题