Skip to content

Consume item manually #242

@kharindev

Description

@kharindev

There is such a problem, if you press the buy button and immediately close the application, then the purchase will not be delivered, and when you return to the application, you will be informed that you already have this content. Hence, we need to manually consume the purchase, for this we need two getOwnedPurchases () methods
and consumerPurchase (String productId). So that you can manually find purchases to be consumed and deliver them to the user.

For example, a user started buying coins and exited the game, next time he will not be able to buy coins because the purchase was not consumed. We look at what our own purchases are, if there is a non consume purchase with a coin index, we need to consume it so that the user can buy it in the future.

gdxPayVersion = '1.3.1'

Please select the affected platforms and payment service implementation

  • Amazon
  • googlebilling
  • googlepay
  • apple robovm
  • Huawei

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions