In-app purchases made via promo codes return empty developer payload string

后端 未结 1 504
迷失自我
迷失自我 2021-01-30 08:45

I have an app published to the alpha channel, with an in-app (un)managed item that costs $1.

When I purchase normally, i.e, use a credit/debit card Google returns the co

1条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 09:04

    This issue was opened on the google's android-play-billing samples repo. Looks like it was ignored for a long time and was eventually closed with this comment. In short, they have following suggestions.


    We reviewed our guidelines and internal APIs, and since the developerPayload is not supported across all features on In-App Billing API (including promocodes), we are removing the recommendation to use it as a security check.

    As you can see in our documentation, on the page Implementing In-app Billing (https://developer.android.com/google/play/billing/billing_integrate.html) we've added a recommendation:

    Caution: Don't use the developerPayload field for security validation purposes. This field isn't always available when completing tasks related to In-app Billing. For more information about security best practices, see the In-app Billing Security and Design guide.

    Our recommendation is to validate on your own backend, using the Play Developer API.


    0 讨论(0)
提交回复
热议问题