Fix apple payment

This commit is contained in:
Son NK 2020-04-19 22:54:21 +02:00
parent 34635bf854
commit d5e868e629
2 changed files with 4 additions and 1 deletions

View File

@ -1097,7 +1097,7 @@ If success, 200.
}
```
#### POST /apple/process_payment
#### POST /api/apple/process_payment
Process payment receipt

View File

@ -9,6 +9,7 @@ from flask_cors import cross_origin
from app.api.base import api_bp, verify_api_key
from app.config import APPLE_API_SECRET
from app.extensions import db
from app.log import LOG
from app.models import PlanEnum, AppleSubscription
@ -292,4 +293,6 @@ def verify_receipt(receipt_data, user) -> Optional[AppleSubscription]:
plan=plan,
)
db.session.commit()
return apple_sub