wuyxhero / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

Canceled subscriptions are still being reported as "autoRenewing": true by the google apis #130

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
1. Purchase a monthly subscription
2. Do not renew the subscription (the actual cause is unknown, may be the 
credit card is not chargeable any more).
3. Query the Google APIs for that subscription after the due date has passed 
(days later) and you still get "autoRenewing": true

Example:

curl -HAccept:text/plain 
https://www.googleapis.com/androidpublisher/v1/applications/com.fibercode.family
tracker/subscriptions/pro.features.subscr.1month/purchases/ekozswaoxrhhrfddhaejn
axu?access_token=ya29.AHES6ZTvTpuL-ThZbVYrGP8EJhpzUsRCj5DxMgjuvaz8vxTAKg 
{
 "kind": "androidpublisher#subscriptionPurchase",
 "initiationTimestampMsec": "1366849536524",
 "validUntilTimestampMsec": "1372141442968",
 "autoRenewing": true
}

EXPECTED OUTPUT:

"autoRenewing": false

ACTUAL OUTPUT:

"autoRenewing": true

AFFECTED ORDER IDS (IF RELEVANT):

12999763169054705758.1343173774165752

OS VERSION:

MARKET/MYAPPS VERSION:

Family Tracker v.3.3.23

DEVICE:

Not relevant

OUTPUT FROM ADB BUGREPORT ATTACHED:
(Note: The output from "adb bugreport" is required for all bug reports.)
N/A

NOTES: We see this issue with more than one subscription. The above example is 
of a subscription did not renew on June 24th but the Google APIs are still 
reporting it as "autoRenewing": true

Original issue reported on code.google.com by fiberc...@gmail.com on 10 Jul 2013 at 12:21