add more debug log

This commit is contained in:
Son NK 2020-04-21 20:17:43 +02:00
parent 318b47af36
commit 7fff8f84d8

View file

@ -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}
) )