Pass recharge product ID to Huihui order API
This commit is contained in:
@@ -36,9 +36,10 @@ class HuihuiOrgPaymentClient(HuihuiPaymentClient):
|
||||
return data
|
||||
|
||||
def create_order(self, *, token: str, user_id: str, name: str, phone: str,
|
||||
avatar: str, amount: str) -> dict:
|
||||
avatar: str, amount: str, product_id: str) -> dict:
|
||||
body = {"chargeAmount": float(amount),
|
||||
"commodityName": "数字分身积分充值", "userId": user_id,
|
||||
"commodityName": "数字分身积分充值", "productId": product_id,
|
||||
"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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user