rezzza/PaymentBe2billBundle — pull request #21 by florianv (2014-06-25 03:30:18+00:00)
Title: Added callback handler to handle 3DS callback

Handling a 3DS callback can be done this way

```php
namespace Acme/DemoBundle/Controller;

use Rezzza\PaymentBe2billBundle\Callback\Callback3dsRequest;
use Symfony\Component\HttpFoundation\Request;

class SomeController
{
public function callbackAction(Request $request)
{
$callbackRequest = Callback3dsRequest::createFromRequest($request);
try {
$this->get('payment.be2bill.callback.3ds_handler')->handle($callbackRequest);
} catch (\Exception $e) {
// The handling of the callback failed so you can log the error somewhere
}
}
}
```

The callback handler will fetch the corresponding `FinancialTransation` from the transaction id (https://github.com/rezzza/PaymentBe2billBundle/blob/master/Plugin/Be2billDirectLinkPlugin.php#L62), update the model states and save them.