diff --git a/docs/get-it-started.md b/docs/get-it-started.md index b9f149f..229c3cb 100644 --- a/docs/get-it-started.md +++ b/docs/get-it-started.md @@ -125,19 +125,12 @@ class PaypalController extends CController $token = $this->getPayum()->getHttpRequestVerifier()->verify($_REQUEST); $payment = $this->getPayum()->getRegistry()->getPayment($token->getPaymentName()); - $payment->execute($status = new \Payum\Core\Request\BinaryMaskStatusRequest($token)); + $status = new \Payum\Core\Request\SimpleStatusRequest($token); + $payment->execute($status); - $content = ''; - if ($status->isSuccess()) { - $content .= '
',$content,''; - exit; + echo CHtml::tag('h3', array(), 'Payment status is ' . $status->getStatus()); + echo CHtml::tag('pre', array(), json_encode(iterator_to_array($status->getModel()), JSON_PRETTY_PRINT)); + Yii::app()->end(); } /**