id = $data['id']; } public function processRequest() { $request = $this->getRequest(); $viewer = $request->getUser(); $cart = id(new PhortuneCartQuery()) ->setViewer($viewer) ->withIDs(array($this->id)) ->needPurchases(true) ->executeOne(); if (!$cart) { return new Aphront404Response(); } // TODO: This obviously doesn't do anything for now. return id(new AphrontRedirectResponse()) ->setURI($cart->getDetailURI()); } }