mirror of
https://github.com/simple-login/app.git
synced 2024-09-29 21:21:29 +02:00
take into account /verifyReceipt can return 5**
This commit is contained in:
parent
3754cee8f8
commit
40b4273111
@ -302,6 +302,9 @@ def verify_receipt(receipt_data, user, password) -> Optional[AppleSubscription]:
|
|||||||
r = requests.post(
|
r = requests.post(
|
||||||
_PROD_URL, json={"receipt-data": receipt_data, "password": password}
|
_PROD_URL, json={"receipt-data": receipt_data, "password": password}
|
||||||
)
|
)
|
||||||
|
if r.status_code >= 500:
|
||||||
|
LOG.error("Apple server error, response:%s %s", r, r.content)
|
||||||
|
return None
|
||||||
|
|
||||||
if r.json() == {"status": 21007}:
|
if r.json() == {"status": 21007}:
|
||||||
# try sandbox_url
|
# try sandbox_url
|
||||||
|
Loading…
Reference in New Issue
Block a user