libgdx / gdx-pay

A libGDX cross-platform API for InApp purchasing.
Apache License 2.0
225 stars 83 forks source link

Add gdx-pay-client-mock, that supports testing all scenario's #121

Closed keesvandieren closed 7 years ago

keesvandieren commented 7 years ago

Currently testing all various scenario's, is very hard. Google has changed their policy, not longer allowing test purchases with releases installed via gradle

We could add a mock client, that supports various scenario's that could happen in reality (basically supporting all methods defined in PurchaseObserver).

It could be a drop-in replacement for gdx-pay-android-googleplay and gdx-pay-iosrobovm-apple.

It would help me to have this. Anybody who needs this too? Anybody willing to help?

keesvandieren commented 7 years ago

It is still possible to do test purchases for gmail accounts listed in Google Play Console --> Settings --> Account details, section LICENSE TESTING.

WIth the realization of #120 (ability to cancel test purchases) this is sufficient for now.