android - Is there any way to differentiate "Normal Purchase" from "Promo code purchase"? -
i have inapp products android app. when inapp product purchased, checking
- purchase bundle of product id - tells purchase successful.
- developerpayload validation - tells purchase data recieved valid.
so far inapp purchases made in app working since i'm recieving matched purchase bundle matched paylaod.
when purchase via promo code,
- i'm recieving matched purchase bundle inapp product
- empty developerpayload.
since i'm having above 2 checks every inapp prodcut, verification failed @ validating developers payload.
after research came know that,
when promo code used in-app purchase (the purchases_updated intent) bypass purchase flow app can't supply "developerpayload", used remote verification.
https://github.com/googlesamples/android-play-billing/issues/7
- if promo code purchase, can't receive "developerpayload"?
- if ans not question (1), there way differentiate if purchase happend "normal" or "promo code" purchase?
- if ans not question (2), should skip check validating developerpayload? , if there way differentiate, that?
- what way google providing skip developers payload if promo code purchase?
Comments
Post a Comment