public function testMerchantIdentifierServiceByMerchantId_FuzzyMatch() { $options = new MerchantIdentifierRequestOptions("DIRECTSATELLITETV"); $options->setType("FuzzyMatch"); $merchantIds = $this->merchantIdentifierService->getMerchantIds($options); $this->assertTrue(count($merchantIds->getReturnedMerchants()->getMerchant()) > 0); }
private function getURL(MerchantIdentifierRequestOptions $options) { $url = ""; if ($this->environment == Environment::PRODUCTION) { $url = $this->PRODUCTION_URL; } else { $url = $this->SANDBOX_URL; } $url = URLUtil::addQueryParameter($url, "MerchantId", $options->getMerchantId()); $url = URLUtil::addQueryParameter($url, "Type", $options->getType()); return $url; }