Android Real Time developer notification for one time purchase is half working
Asked Answered
I

1

10

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?

Inocenciainoculable answered 26/11, 2020 at 22:30 Comment(0)
I
14

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.

Inocenciainoculable answered 16/12, 2020 at 16:42 Comment(7)
So how you decided to solve this problem? Or in "real world" "Test card, always approves" does not exist?Felicidadfelicie
@ДмитрийПупкинг Added load of checks and rechecks for purchases on android and server.Inocenciainoculable
Ok this is really bad. I too implemented the logic keeping the RTDN as a source of truth for all transactions. Turns out it doesn't send any notifications. Great!!!! I don't understand why does google like to make android development so tough.Litton
How to solve this??Georgetown
@VinodRaut Complex logic to commit the phone-only notifications to the server (taking into account that connection can be lost during the commit) and have the server as source of the truth anyway. In my case having the purchase without the connection to the server is senseless.Inocenciainoculable
What is the conclusion here? I am also confused. I got notification when used 'Slow test card, approves after a few minutes' but did not get any notification when used 'Test card, always approves'. What the hell will happen in the case of production env?Sisile
OHHHHHHHH MYYYYYYYY GODDDDDDDDDDDDDDDD thanks a lot @Midnight Guest otherwise I would have searched this answer for T+60 years and my grand children's would be pushing my app in production, I mean I don't know what google developers want from us, to check our ability to guess beforehand what they have implemented? I am working on this integration from last few weeks and everywhere they have got something which you I have to guess or ask them from their support. Anyways thanks a ton man for saving our crucial time :)Hilton

© 2022 - 2024 — McMap. All rights reserved.