imdhemy / google-play-billing

Google Play billing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for Product "consume"

teyeheimans opened this issue · comments

Description

Currently it is possible to retrieve a purchase, and acknowledge it. However, it is not possible to consume a purchase.

Therefore I would suggest to add a consume method to the Imdhemy\GooglePlay\Products\ProductClient class.

See https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.products/consume

Example

No response

This issue is stale because it has been open 60 days with no
activity. Remove Stale label or comment or this will be closed in 7 days

This issue is stale because it has been open 60 days with no
activity. Remove Stale label or comment or this will be closed in 7 days

Hi @teyeheimans
Consume is already implemented.

public function consume(): EmptyResponse

Ah perfect!