mirror of
https://github.com/simple-login/app.git
synced 2024-11-18 06:31:27 +08:00
add more debug log
This commit is contained in:
parent
318b47af36
commit
7fff8f84d8
1 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ def apple_process_payment():
|
||||||
200 of the payment is successful, i.e. user is upgraded to premium
|
200 of the payment is successful, i.e. user is upgraded to premium
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
LOG.debug("request for /apple/process_payment")
|
||||||
user = g.user
|
user = g.user
|
||||||
receipt_data = request.get_json().get("receipt_data")
|
receipt_data = request.get_json().get("receipt_data")
|
||||||
|
|
||||||
|
@ -287,6 +288,7 @@ def verify_receipt(receipt_data, user) -> Optional[AppleSubscription]:
|
||||||
|
|
||||||
https://developer.apple.com/documentation/appstorereceipts/verifyreceipt
|
https://developer.apple.com/documentation/appstorereceipts/verifyreceipt
|
||||||
"""
|
"""
|
||||||
|
LOG.d("start verify_receipt")
|
||||||
r = requests.post(
|
r = requests.post(
|
||||||
_PROD_URL, json={"receipt-data": receipt_data, "password": APPLE_API_SECRET}
|
_PROD_URL, json={"receipt-data": receipt_data, "password": APPLE_API_SECRET}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue