Skip to content

Commit

Permalink
Use human readable status
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandernst committed Jul 18, 2014
1 parent 706431c commit 3a03578
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions docs/get-it-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,10 @@ 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);

echo Yii::t('app',
'0#<h3>Payment status is NOT success.</h3>|'.
'1#<h3>Payment status IS success.</h3>',
$status->isSuccess()
);
echo CHtml::tag('h3', array(), 'Payment status is ' . $status->getStatus());
echo CHtml::tag('pre', array(), CVarDumper::dumpAsString($status->getModel(), 10, true));
Yii::app()->end();
}
Expand Down

0 comments on commit 3a03578

Please sign in to comment.