getOrderByID() public method

根据订单ID获取订单详情
public getOrderByID ( string $order_id ) : order
$order_id string 订单ID
return order array|bool
Ejemplo n.º 1
0
<?php

include "../wechat.class.php";
$options = array('token' => 'XXXXXX', 'encodingaeskey' => 'XXXXXX', 'appid' => 'XXXXXX', 'appsecret' => 'XXXXXX');
$weObj = new Wechat($options);
$order = $weObj->getOrderByID("13791169361138306965");
var_dump($order);
$order = $weObj->getOrderByFilter();
var_dump($order);