Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play Billing Library - developerPayload support. #78

Closed
gswierczynski opened this issue Sep 4, 2017 · 13 comments
Closed

Play Billing Library - developerPayload support. #78

gswierczynski opened this issue Sep 4, 2017 · 13 comments

Comments

@gswierczynski
Copy link

Hi,

It's probably not the best place to ask this, but I am not sure where else I can put it.

Can we expect support of developerPayload in the Android Billing Library?
Currently BillingClient class passes null as developerPayload.

I realise that it's dp-1.
Just wondering if I should wait for another release or drop using library for now.

Thanks,
Greg.

@gswierczynski gswierczynski changed the title Android Billing Library - developerPayload support. Play Billing Library - developerPayload support. Sep 4, 2017
@gang018
Copy link

gang018 commented Sep 20, 2017

Hi @gswierczynski
Look at method setAccountId() of class BillingFlowParams. May bee it can be used as developerPayload.
The docs says:

Specify an optional obfuscated string that is uniquely associated with the user's account in
your app.

If you pass this value, Google Play can use it to detect irregular activity, such as many
devices making purchases on the same account in a short period of time. Do not use the
developer ID or the user's Google ID for this field. In addition, this field should not
contain the user's ID in cleartext. We recommend that you use a one-way hash to generate a
string from the user's ID and store the hashed string in this field.

@gswierczynski
Copy link
Author

Hi @gang018,

Thanks, I have noticed this method, but verified that value passed as parameter it is not passed as a developer payload and later cannot be retrieved from API response on the server side.

@gswierczynski
Copy link
Author

gswierczynski commented Sep 25, 2017

Hi,

I would love to know your take on this. Is this something that will be done.

The way I see it, it is fairly simple to add another method BillingFlowParams.Builder that would allow passing developer payload to the API.

Or you do not plan to support developer payload. Is it not going to be available in the future and we just do not know about it yet?

Cheers,
Greg.

@crossle
Copy link

crossle commented Sep 27, 2017

Same problem no developer payload, not passed by server verify, plz add back developer payload

@gswierczynski
Copy link
Author

@crossle - just to clarify - the developerPayload is still supported. If you would use the API directly everything is OK. It is just that the Play Billing Library does not expose it (there is no way to set it during purchase request).

@crossle
Copy link

crossle commented Sep 27, 2017

@gswierczynski, thanks, i migrate to Play Billing library, found no method set developer payload

@gswierczynski
Copy link
Author

@gorgon Any chance you could let us know, if developerPayload will be supported by the library?

@gswierczynski
Copy link
Author

I received anwser on the bugtracker pointing me to another issue:
https://issuetracker.google.com/issues/63381481

Gist is:
Developer Payload is a legacy field, might become deprecated and removed at some point.
Will not be supported by the Play Billing library.

I always considered it something additional that was checked on the server side (verification that user processing purchase on server was the same as the one initiating it).

@tianxiatianshan
Copy link

May i kown when the DeveloperPayload might be deprecated?

@Mahmoood
Copy link

Mahmoood commented May 22, 2019

Finally, the v2 of the billing library supports developer payload.

@candyluo
Copy link

最后,计费库的v2支持开发人员有效负载。

v2是什么版本?

@linsea
Copy link

linsea commented Jan 7, 2020

Finally, the v2 of the billing library supports developer payload.

Do you mean the BillingFlowParams.Builder#setDeveloperId(java.lang.String) method ?
https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder.html#setDeveloperId(java.lang.String)

@gswierczynski
Copy link
Author

Note, however, that you can attach a developer payload only when the purchase is acknowledged or consumed.

So it is not something you specify when you build BillingFlowParams.

Documentation:
https://developer.android.com/google/play/billing/billing_library_overview#attach_a_developer_payload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants