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; }
protected function getJsonData() { $data = parent::getJsonData(); $data['data'] = array(); return $data; }