fix: pass Huihui token to production cashier
This commit is contained in:
@@ -455,8 +455,7 @@ def charge_via_huihui_org(payload: dict = Body(...), authorization: str = Header
|
||||
db.add(order)
|
||||
db.commit()
|
||||
result = _payment_payload(order, get_or_create_account(db, user.id))
|
||||
if "fat-open.99hui.com" in os.getenv("HUIHUI_ORG_BASE_URL", ""):
|
||||
result["checkoutToken"] = user.huihui_token
|
||||
result["checkoutToken"] = user.huihui_token
|
||||
return ok(result)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user