示例#1
0
    protected function getJsonData()
    {
        $localData = array(
            'amount' => (string)$this->getAmount(),
            'currency' => $this->getCurrency(),
        );

        if ($this->order) {
            $localData['order'] = $this->order->getJsonData();
        }

        $data = parent::getJsonData();
        $data['data'] = $localData;
        
        return $data;
    }
示例#2
0
 protected function getJsonData()
 {
     $data = parent::getJsonData();
     $data['data'] = array();
     return $data;
 }