public function getJSOrderData()
{
if ($this->isSuccessful()) {
$data = array('appId' => $this->request->getAppId(), 'package' => 'prepay_id=' . $this->getPrepayId(), 'nonceStr' => md5(uniqid()), 'timeStamp' => time());
$data['signType'] = 'MD5';
$data['paySign'] = Helper::sign($data, $this->request->getApiKey());
} else {
$data = null;
}
return $data;
}