Pass recharge product ID to Huihui order API

This commit is contained in:
stefanfeng
2026-10-19 14:12:43 +08:00
parent 3379d5a1b2
commit 643abd13ea
5 changed files with 35 additions and 3 deletions
@@ -434,6 +434,7 @@ def charge_via_huihui_org(payload: dict = Body(...), authorization: str = Header
token=user.huihui_token, user_id=user.huihui_user_id,
name=user.nickname, phone=user.phone, avatar=user.avatar_url,
amount=f"{cents / 100:.2f}",
product_id=plan.id,
)
except HuihuiPaymentError as exc:
return fail(str(exc), 502)