getOrderByID() 공개 메소드

根据订单ID获取订单详情
public getOrderByID ( string $order_id ) : order
$order_id string 订单ID
리턴 order array|bool
예제 #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);