getJournal(); if (!Validation::isLoggedIn()) { Validation::redirectLogin('payment.loginRequired.forDonation'); } $user =& $request->getUser(); $queuedPayment =& $paymentManager->createQueuedPayment($journal->getId(), PAYMENT_TYPE_DONATION, $user->getId(), 0, 0); $queuedPaymentId = $paymentManager->queuePayment($queuedPayment); $paymentManager->displayPaymentForm($queuedPaymentId, $queuedPayment); } /** * Display a "thank you" page. * @param $args array * @param $request PKPRequest */ function thankYou($args, &$request) { $templateMgr =& TemplateManager::getManager(); $this->setupTemplate(); $journal =& $request->getJournal(); $templateMgr->assign(array( 'currentUrl' => $request->url(null, null, 'donations'), 'pageTitle' => 'donations.thankYou', 'journalName' => $journal->getLocalizedTitle(), 'message' => 'donations.thankYouMessage' )); $templateMgr->display('common/message.tpl'); } } ?>