Skip to content

Commit 4190fa7

Browse files
committed
0.10 core support.
1 parent a84aa52 commit 4190fa7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/get-it-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ Your configuration may look like this:
3838
<?php
3939
// app/config/main.php
4040

41-
use Buzz\Client\Curl;
4241
use Payum\Core\Storage\FilesystemStorage;
4342
use Payum\Paypal\ExpressCheckout\Nvp\Api;
4443
use Payum\Paypal\ExpressCheckout\Nvp\PaymentFactory as PaypalEcPaymentFactory;
@@ -54,7 +53,7 @@ return array(
5453
'class' => '\Payum\YiiExtension\PayumComponent',
5554
'tokenStorage' => new FilesystemStorage(__DIR__.'/../data', 'PaymentSecurityToken', 'hash'),
5655
'payments' => array(
57-
'paypal_ec' => PaypalEcPaymentFactory::create(new Api(new Curl(), array(
56+
'paypal_ec' => PaypalEcPaymentFactory::create(new Api(array(
5857
'username' => 'REPLACE WITH YOURS',
5958
'password' => 'REPLACE WITH YOURS',
6059
'signature' => 'REPLACE WITH YOURS',

src/Payum/YiiExtension/PaymentController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
namespace Payum\YiiExtension;
33

44
use Payum\Core\Request\InteractiveRequestInterface;
5-
use Payum\Core\Request\RedirectUrlInteractiveRequest;
6-
//use Payum\Core\Request\Http\RedirectUrlInteractiveRequest; // see issue #17
5+
use Payum\Core\Request\Http\RedirectUrlInteractiveRequest;
76
use Payum\Core\Request\SecuredCaptureRequest;
87
use Payum\Core\Exception\LogicException;
98

@@ -44,6 +43,7 @@ public function handleException(\CExceptionEvent $event)
4443
if ($interactiveRequest instanceof RedirectUrlInteractiveRequest) {
4544
$this->redirect($interactiveRequest->getUrl(), true);
4645
$event->handled = true;
46+
4747
return;
4848
}
4949

0 commit comments

Comments
 (0)