public function getHandler(TransactionPayment $handler, $api) { set_time_limit(0); $username = $handler->getConfigValue('username'); $password = $handler->getConfigValue('password'); $signature = $handler->getConfigValue('signature'); $wpp = new WebsitePaymentsPro(); $wpp->prepare($username, $password, $signature); return $wpp->selectOperation($api); }