JayKey
JayKey

Reputation: 176

Symfony2 Payum Bundle - Call to undefined method isCaptured()

I try to make Paypal Express Checkout exacly like it's here: https://github.com/Payum/Payum/blob/master/docs/symfony/custom-purchase-examples/paypal-express-checkout.md https://github.com/Payum/Payum/blob/master/docs/symfony/purchase-done-action.md

Everything works expect that captureDoneAction returns error:

Error: Call to undefined method Payum\Core\Request\GetHumanStatus::isCaptured() in (..)/PaymentBundle/Controller/DefaultController.php line 65

(..) is just my path and line 65 is:

if ($status->isCaptured()) {

everything else is just like in the example in Payum Documentation. Why isCaptured() returns an error?

Upvotes: 1

Views: 187

Answers (1)

JayKey
JayKey

Reputation: 176

Thanks to Coussinsky, answer to this question is very easy. In documentation there is a mix-up of versions if you follow the links in the bottom of the http://payum.org/doc/0.11/PayumBundle/simple_purchase_examples/paypal_express_checkout (https://github.com/Payum/Payum/blob/master/docs/symfony/custom-purchase-examples/paypal-express-checkout.md)

Upvotes: 1

Related Questions