/** * Setup. */ protected function setUp() { $this->credentials = new MerchantCredentials(); $this->credentials->setAccountId($this->payuCredentials['accountId'])->setMerchantId($this->payuCredentials['merchantId'])->setApiLogin($this->payuCredentials['apiLogin'])->setApiKey($this->payuCredentials['apiKey']); $this->object = new PaymentApi($this->credentials); $this->object->setStaging(); }
/** * @see ApiAbstract::getApiUrl() */ public function testGetApiUrlInProduction() { $rs = $this->object->setStaging(false)->getApiUrl(); $this->assertEquals('https://api.payulatam.com/payments-api/4.0/service.cgi', $rs); }