首页 > 解决方案 > Android Real Time developer notification for one time purchase is half working

问题描述

Android's Real Time developer notification works when I use "Slow test card, approves after a few minutes". I'm getting two notifications on my server via pub/sub. One when the purchases has been made and with token and order withconsumptionState:0 in it. And the second notification, after it has been consumed, with token and order with consumptionState:1 in it. Exactly what I want and expect.

BUT when I use "Test card, always approves" for the same one-time consumable purchase I'm not getting any "Real Time developer notifications" at all.

Am I the only one experiencing such behavior? Is this by design? How to get the notification all the time?

标签: androidin-app-purchasein-app-billinggoogle-cloud-pubsubandroid-inapp-purchase

解决方案


Got the response from google:

For one-time purchases real-time developer notifications are only send for pending transactions today. "Test card, always approves" is not a pending transaction which is why no notifications are sent today. We'll work on making this clearer in our documentation.

What makes all this real time developer notifications useless since you can't have one place to process all purchases consistently.


推荐阅读