mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Send google play public key during /purchase/can-do-purchase
This commit is contained in:
@@ -21,7 +21,7 @@ On a invalid request body: HTTP status code 400 Bad request
|
||||
|
||||
On a invalid auth token: HTTP status code 401 Unauthorized
|
||||
|
||||
On success: a JSON object with the property ``canDoPurchase`` of the type string
|
||||
On success: a JSON object with the property ``canDoPurchase`` (string) and ``googlePlayPublicKey`` (string, base64)
|
||||
|
||||
possible values of ``canDoPurchase``:
|
||||
|
||||
@@ -29,6 +29,8 @@ possible values of ``canDoPurchase``:
|
||||
- ``no due to old purchase``
|
||||
- ``no because not supported by the server``
|
||||
|
||||
The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed.
|
||||
|
||||
## POST /purchase/finish-purchase-by-google-play
|
||||
|
||||
Use this to report a purchase to the server/ unlock all features after a purchase
|
||||
|
||||
Reference in New Issue
Block a user