站点工具

Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
New release available: 2020-07-29 "Hogfather". upgrade now! [51.3] (what's this?)
New release candidate 3 available: 2020-06-09 "Hogfather". upgrade now! [51.2] (what's this?)
New release candidate 2 available: 2020-06-01 "Hogfather". upgrade now! [51.1] (what's this?)
New release candidate available: 2020-06-01 "Hogfather". upgrade now! [51] (what's this?)
Hotfix release available: 2018-04-22c "Greebo". upgrade now! [50.3] (what's this?)
Hotfix release available: 2018-04-22b "Greebo". upgrade now! [50.2] (what's this?)
Hotfix release available: 2018-04-22a "Greebo". upgrade now! [50.1] (what's this?)
New release available: 2018-04-22 "Greebo". upgrade now! [50] (what's this?)
Hotfix release available: 2017-02-19g "Frusterick Manners". upgrade now! [49.7] (what's this?)
Hotfix release available: 2017-02-19f "Frusterick Manners". upgrade now! [49.6] (what's this?)
Hotfix release available: 2017-02-19e "Frusterick Manners". upgrade now! [49.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2017-02-19d "Frusterick Manners". upgrade now! [49.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2017-02-19c "Frusterick Manners". upgrade now! [49.3] (what's this?)
Hotfix release available fixing security token and media manager: 2017-02-19b "Frusterick Manners". upgrade now! [49.2] (what's this?)
Hotfix release available fixing install and media manager issues: 2017-02-19a "Frusterick Manners". upgrade now! [49.1] (what's this?)
New release available: 2017-02-19 "Frusterick Manners". upgrade now! [49] (what's this?)
Hotfix release available: 2016-06-26e "Elenor of Tsort". upgrade now! [48.5] (what's this?)
Hotfix release available fixing CVE-2017-12979 and CVE-2017-12980: 2016-06-26d "Elenor of Tsort". upgrade now! [48.4] (what's this?)
Hotfix release available fixing CVE-2017-12583: 2016-06-26c "Elenor of Tsort". upgrade now! [48.3] (what's this?)
Hotfix release available fixing security token: 2016-06-26b "Elenor of Tsort". upgrade now! [48.2] (what's this?)
Hotfix release available fixing authad issues: 2016-06-26a "Elenor of Tsort". upgrade now! [48.1] (what's this?)
New release available: 2016-06-26 "Elenor of Tsort". upgrade now! [48] (what's this?)
Hotfix release available: 2015-08-10a "Detritus". upgrade now! [47.1] (what's this?)
New release available: 2015-08-10 "Detritus". upgrade now! [47] (what's this?)
Hotfix release available: 2014-09-29d "Hrun". upgrade now! [46.4] (what's this?)
Hotfix release available: 2014-09-29c "Hrun". upgrade now! [46.3] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-09-29b "Hrun". upgrade now! [46.2] (what's this?)
Hotfix release available: 2014-09-29a "Hrun". upgrade now! [46.1] (what's this?)
New release available: 2014-09-29 "Hrun". upgrade now! [46] (what's this?)
Hotfix release available: 2014-05-05e "Ponder Stibbons". upgrade now! [44.5] (what's this?)
Hotfix release available: 2014-05-05d "Ponder Stibbons". upgrade now! [44.4] (what's this?)
Hotfix release available to prevent XSS attack via SWF uploads: 2014-05-05c "Ponder Stibbons". upgrade now! [44.3] (what's this?)
Security Hotfix 2014-05-05b to prevent zero byte attacks on external auth systems is available. upgrade now! [44.2] (what's this?)
Security Hotfix 2014-05-05a for Issue 765 available. upgrade now! [44.1] (what's this?)

seller_pay

热拍卖家订单支付接口

1、热拍卖家订单(保证金、广告费、会员费)支付接口

https://m.repai.com/pay/gateway_api/orderid/15位订单号/pay_gateway/支付网关/total_price/1000/order_type/1/appkey/100004/token/防篡改验证串/?callback_url=http%3A%2F%2Fb.m.repai.com%2Faaa%2Fbbb%2F

输入参数说明:

  • orderid 【热拍卖家订单号,由卖家客户端生成,生成函数如下:】
<?php
//生成一个15字节长的订单号
function model_item_orderid_create() {
		$orderid = microtime(true);
		$orderid = $orderid * 10000;
		$orderid = $orderid.mt_rand(0,9);
		return $orderid;
	}
?>
  • pay_gateway 【支付网关:1为热币支付,2为支付宝WAP网页支付,3为支付宝客户端支付,4为微信支付,5为微博支付,6为中信银行异度支付。目前可以使用的支付网关为2,支付宝WAP网页支付。
  • appkey 【热拍卖家版Android客户端的appkey为100005,iOS为100004;热拍买家版HTML5为100001,iOS为100002,Android为100003;校园微店iOS为100042,Android为100043;】
  • total_price 【付款金额】
  • order_type 【订单类型:1为热拍商家保证金,2为热拍商家广告费,3为热拍商家会员费】
  • callback_url 【urlencode编码的回调地址(改网址通过服务器内部调用,不会对用户显示),不能含有?、&、=等参数,例如:http://b.m.repai.com/aaa/bbb/,支付完成后,会回调此接口,传递:http://b.m.repai.com/aaa/bbb/?orderid=热拍卖家订单号,此接口拿到orderid后,通过《2、热拍卖家订单查询接口》查询订单支付状态
  • token 【防篡改验证串,token值的组成为,以PHP代码为例:md5(“RP”.$appkey.$appsecret.$orderid.$total_price.$order_type) 由卖家PHP端生成,其中 $appsecret为密钥,每个appkey对应的不同的密钥,密钥请询问张宴】

输出参数说明:

  • 输出支付成功、失败网页,并回调 callback_url 地址。

2、热拍卖家订单查询接口(PHP内部调用)

<?php
require_once("/Data/webapps/m.repai.com/m/phpapi.php"); //PHP引用方式,需要引用的框架入口文件
$result = phpapi_mvc("pay", "seller_order_info_phpapi", array("orderid" => "140738589619194"));
var_dump($result);
?>

输入参数说明:

  • orderid 【热拍卖家订单号】

输出参数说明:

示例如下:

array(11) {
	["orderid"]=>
	string(15) "140738589619194"
	["pay_gateway"]=>
	int(2)
	["total_price"]=>
	string(4) "0.01"
	["order_type"]=>
	string(1) "1"
	["appkey"]=>
	string(6) "100004"
	["controller"]=>
	string(3) "pay"
	["action"]=>
	string(11) "gateway_api"
	["parameters"]=>
	string(121) "orderid/140738589619194/pay_gateway/2/total_price/0.01/order_type/1/appkey/100004/token/7ea4a5c865b500a8ce7e4974cbafbdf0/"
	["callback_url"]=>
	string(29) "http://b.m.repai.com/aaa/bbb/"
	["alipay_trade_no"]=>
	string(16) "2014080753985469"
	["is_payment"]=>
	int(1)
}
  • orderid 【热拍卖家订单号】
  • total_price 【支付金额】
  • pay_gateway 【支付网关:1为热币支付,2为支付宝WAP网页支付,3为支付宝客户端支付,4为微信支付,5为微博支付,6为中信银行异度支付】
  • is_payment 【最重要参数:1为成功付款并到账,0为没有完成支付

返回首页

seller_pay.txt · 最后更改: 2014/08/28 16:50 由 106.2.171.114