订阅购买后无效到期日期 [英] Invalid expire date after subscription purchase

查看:183
本文介绍了订阅购买后无效到期日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序与应用内订阅。
用户已经购买了订阅后,我通过谷歌的API我们的后端请求validUntilTimestampMsec和initiationTimestampMsec。

i've got an android app with in-app subscriptions. After the user has purchased a subscription, i request the "validUntilTimestampMsec" and "initiationTimestampMsec" through our backend by the Google API.

在返回时间戳initiationTimestamp是正确的,并重新presents用户做出购买的时间,但返回的时间戳validUntilTimestamp一直+12小时,真正有效的,直到时间我需要一个差异。我使用提取日期的功能是simmilar到两个时间戳。

The returning timestamp "initiationTimestamp" is correct and represents the time the user has made the purchase, but the returning timestamp "validUntilTimestamp" has always a difference of +12 hours to the real valid-until time i need. The function i use to retrieve the date is simmilar to both timestamps.

哪里有12小时从何而来,我怎么能得到正确的时间。该到期日期也将显示错误的谷歌播放里面的用户。
搜索结果
例包月:

Where does the 12 hours come from and how can i get the correct time. The expire date will also be displayed wrong for the user inside Google Play.

Example for a monthly subscription:

是:结果
initiationTimestamp:1374433559436(7:05 PM)结果
validUntilTimestamp:1377155159436(上午7:05) - >初始化时间+ 1个月+12小时

Is:
initiationTimestamp: 1374433559436 (7:05pm)
validUntilTimestamp: 1377155159436 (7:05am) -> init-time + 1 month + 12 hours

需要:结果
initiationTimestamp:1374433559436(7:05 PM)结果
validUntilTimestamp:1377111959(7:05 PM) - >初始化时间+ 1个月没有12小时

Needed:
initiationTimestamp: 1374433559436 (7:05pm)
validUntilTimestamp: 1377111959 (7:05pm) -> init-time + 1 month without the 12 hours

推荐答案

我没有看到这个在任何地方提到,但我认为谷歌保持在 V1 6时间从Shrinath的榜样现在12小时 V1_1 (看起来像你的例子),基本保持一个时间缓冲,从该帐户的客户提款(即谷歌是一个非常重要的交易负责为),以及取消和重试请求。我没有看到它周围的路,不是显示说最多可能需要12小时看到新的东西或类似的警告等。

I dont see this anywhere mentioned, but I think Google maintains the 6 hours in v1 from Shrinath's example and 12 hours now in v1_1(looks like from your example) to basically to keep a time buffer to withdraw funds from the account of the client(a really important transaction that google is accountable for), and for cancellations and retry requests. I dont see a way around it, other than showing a warning saying it may take upto 12 hours to see new stuff or something like that.

这篇关于订阅购买后无效到期日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆