Invalid expire date after subscription purchase

删除回忆录丶 提交于 2019-12-04 15:03:22

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.

Write a function which calculates the validity time that "is right". If Google's reply doesn't match, use the one you calculated, otherwise, use the one that Google gave.

Also, observe that Google always adds additional time, not other way. So if your function returns "greater than" Google's then consider Google's time, else your function's time.

Thats how I solved it in app's backend.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!