* @param $requestInstance An instance of a class with an Requestable interface
* @param $responseInstance An instance of a class with an Responseable interface
* @return void
- * @todo We should add something like payment discovery here (where to withdraw, e.g. external API)
*/
public function execute (Requestable $requestInstance, Responseable $responseInstance) {
- // Unfinished method
+ // This method does currently redirect if all goes right
+ $responseInstance->redirectToConfiguredUrl('refill_page_done');
}
/**
);
// Now, try to load that filter
- $controllerInstance->addPostFilter(ObjectFactory::createObjectByConfiguredName($filterName));
+ $controllerInstance->addPreFilter(ObjectFactory::createObjectByConfiguredName($filterName));
}
}
$this->executePreFilters($requestInstance, $responseInstance);
} catch (UserAuthorizationException $e) {
// Redirect to main page
- $responseInstance->redirectToConfiguredUrl('login_failed_url');
+ $responseInstance->redirectToConfiguredUrl('login_failed');
// Exit here
exit();