李经理:15682290831

通用服务端
视频编辑SDK
K歌SDK

功能说明

会员订阅,返回支付二维码,费用支付成功到HIFIVE账户。

请求方法

POST

Header

以下请求参数列表仅列出了部分公共参数,完整公共参数列表见 公共参数列表

请求参数

请求示例

                HifiveClient client = new DefaultHifiveClient(url, appkey, secret);
HFMemberSubscribePayRequest request = new HFMemberSubscribePayRequest();
request.setMethod(HFRequest.METHOD_GET);
request.setClientId("hf2y7jk19a56qetq05");
request.setCallbackUrl("www.baidu.com");
request.setOrderId("12345678901");
request.setPayType(0);
request.setQrCodeSize(400);
request.setTotalFee(1000);
request.setMemberPriceId(1L);
request.setRemark("会员订阅");
request.setVersion("V4.2.0");
request.setTimestamp(System.currentTimeMillis());request.setAccessToken("eyJ0eXAiOiJKV");
HFMemberSubscribePayResponse response = client.execute(request);
System.out.println(JSON.toJSON(response));

              

响应数据

        curl -G https://gateway-open.haifanwu.com -H 'Authorization:HF3-HMAC-SHA1 Signature=1C32EECF681A136DCAA9373C30B1EECA' -H 'X-HF-ClientId:hf2y7jk19a56qetq05' -H 'X-HF-Token:cc24749900a70c83222654b48cc57a2a' -H 'X-HF-AppId:170ae316b9b14c1b9c185988771bde16' -H 'X-HF-Action:MemberSubscribePay' -H 'X-HF-Timestamp:1595820221753' -H 'X-HF-Version:V4.2.0' -H 'X-HF-Nonce:YLJpgkqFNiIVhLBHxMlNlntHuzscVOQU'
-X POST -d 'accessToken=Jpc3MiOiJoaWZpdmUiLCJle' 
{
  "code": 200,
  "msg": "操作成功",
  "success": true,
  "hfMemberSubscribe": {
     "expires": 1661932434532,
     "clientId": "hf2y7jk19a56qetq05",
     "qrCode": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAA",
     "createTime": "2022-08-31 13:53:54",
     "orderId": "12345678901",
     "totalFee": 1000,
     "subject": "1月会员",
     "outTradeNo": "202208311353547vbKJO1",
     "deadLine": "2022-10-01 13:53:54",
     "outTotalFee": 1
     }
   "taskId": "55bbbb55dc706514"
}
      
  • 功能说明
  • 请求方法
  • Header
  • 请求参数
  • 请求示例
  • 响应数据