fix(payment): rely on Huihui callback for status

This commit is contained in:
stefanfeng
2026-10-16 17:00:35 +08:00
parent 85d0c57548
commit ddb8ea9802
7 changed files with 23 additions and 177 deletions
@@ -36,8 +36,8 @@ class HuihuiOrgPaymentClient(HuihuiPaymentClient):
return data
def create_order(self, *, token: str, user_id: str, name: str, phone: str,
avatar: str, amount: str, pay_type: int) -> dict:
body = {"chargeAmount": float(amount), "payType": pay_type,
avatar: str, amount: str) -> dict:
body = {"chargeAmount": float(amount),
"commodityName": "数字分身积分充值", "userId": user_id,
"name": name or "", "phoneNumber": phone or "", "avatar": avatar or ""}
return self._request("POST", "/order/tokenRecharge", token=token, user_id=user_id, body=body)