Send google play public key during /purchase/can-do-purchase

This commit is contained in:
Jonas Lochmann
2020-06-08 02:00:00 +02:00
parent 12dc22f8a2
commit 27c3b494da
4 changed files with 11 additions and 5 deletions
+3 -1
View File
@@ -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