android - Is there any way to differentiate "Normal Purchase" from "Promo code purchase"? -


i have inapp products android app. when inapp product purchased, checking

  1. purchase bundle of product id - tells purchase successful.
  2. 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,

  1. i'm recieving matched purchase bundle inapp product
  2. 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

  1. if promo code purchase, can't receive "developerpayload"?
  2. if ans not question (1), there way differentiate if purchase happend "normal" or "promo code" purchase?
  3. if ans not question (2), should skip check validating developerpayload? , if there way differentiate, that?
  4. what way google providing skip developers payload if promo code purchase?


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -