Skip to content

Commit

Permalink
0.10 core support.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Aug 1, 2014
1 parent a84aa52 commit 4190fa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/get-it-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Your configuration may look like this:
<?php
// app/config/main.php

use Buzz\Client\Curl;
use Payum\Core\Storage\FilesystemStorage;
use Payum\Paypal\ExpressCheckout\Nvp\Api;
use Payum\Paypal\ExpressCheckout\Nvp\PaymentFactory as PaypalEcPaymentFactory;
Expand All @@ -54,7 +53,7 @@ return array(
'class' => '\Payum\YiiExtension\PayumComponent',
'tokenStorage' => new FilesystemStorage(__DIR__.'/../data', 'PaymentSecurityToken', 'hash'),
'payments' => array(
'paypal_ec' => PaypalEcPaymentFactory::create(new Api(new Curl(), array(
'paypal_ec' => PaypalEcPaymentFactory::create(new Api(array(
'username' => 'REPLACE WITH YOURS',
'password' => 'REPLACE WITH YOURS',
'signature' => 'REPLACE WITH YOURS',
Expand Down
4 changes: 2 additions & 2 deletions src/Payum/YiiExtension/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
namespace Payum\YiiExtension;

use Payum\Core\Request\InteractiveRequestInterface;
use Payum\Core\Request\RedirectUrlInteractiveRequest;
//use Payum\Core\Request\Http\RedirectUrlInteractiveRequest; // see issue #17
use Payum\Core\Request\Http\RedirectUrlInteractiveRequest;
use Payum\Core\Request\SecuredCaptureRequest;
use Payum\Core\Exception\LogicException;

Expand Down Expand Up @@ -44,6 +43,7 @@ public function handleException(\CExceptionEvent $event)
if ($interactiveRequest instanceof RedirectUrlInteractiveRequest) {
$this->redirect($interactiveRequest->getUrl(), true);
$event->handled = true;

return;
}

Expand Down

0 comments on commit 4190fa7

Please sign in to comment.