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
<?php //生成一个15字节长的订单号 function model_item_orderid_create() { $orderid = microtime(true); $orderid = $orderid * 10000; $orderid = $orderid.mt_rand(0,9); return $orderid; } ?>
<?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); ?>
示例如下:
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) }