Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  *
  * @param Notify $request
  */
 public function execute($request)
 {
     RequestNotSupportedException::assertSupports($this, $request);
     $details = ArrayObject::ensureArrayObject($request->getModel());
     $this->payment->execute($httpRequest = new GetHttpRequest());
     if (false == $this->api->validateNotificationSignature($httpRequest->query)) {
         throw new HttpResponse('The notification is invalid', 400);
     }
     $details->replace($httpRequest->query);
     throw new HttpResponse('', 200);
 }