简要描述:

  • 视频点播-打赏支付

请求域名:

  • http://test.yunzshop.com

请求URL:

GET: plugin.video-demand.api.lecturer-reward.run-reward-pay

参数:

参数名 是否必须 类型 说明
amount int 支付金额
pay_method int 支付方式
goods_id int 商品ID

返回示例:

正确时返回:

{
result: 1,
msg: "支付成功",
data: "https://mapi.alipay.com/gateway.do?_input_charset=utf-8&body=%E8%A7%86%E9%A2%91%E7%82%B9%E6%92%AD%E6%89%93%E8%B5%8F%3A6&exter_invoke_ip=127.0.0.1&notify_url=http%3A%2F%2Fdev-yanglei.yunzshop.com%2Faddons%2Fyun_shop%2Fpayment%2Falipay%2FnotifyUrl.php&out_trade_no=DS20171219140537596360&partner=222&payment_type=1&return_url=http%3A%2F%2Fdev-yanglei.yunzshop.com%2Faddons%2Fyun_shop%2Fpayment%2Falipay%2FreturnUrl.php&seller_email=11&service=create_direct_pay_by_user&subject=%E8%A7%86%E9%A2%91%E7%82%B9%E6%92%AD%E6%89%93%E8%B5%8F-%E6%94%AF%E4%BB%98&total_fee=10&sign=055f7e8f2b620219da52e722a87f089a&sign_type=MD5"
}

错误时返回:

{
result: 0,
msg: "支付金额不正确!",
data: null
}

返回参数说明:

参数名 类型 说明

备注:

  • 更多返回错误代码请看首页的错误代码描述