/**
  * 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();
 }
Exemplo n.º 2
0
 /**
  * Setup.
  */
 protected function setUp()
 {
     $this->credentials = MerchantCredentials::getInstance();
     $this->credentials->setAccountId(PAYU_ACCOUNT_ID)->setMerchantId(PAYU_MERCHANT_ID)->setApiLogin(PAYU_API_LOGIN)->setApiKey(PAYU_API_KEY);
     $this->object = new ReportApi($this->credentials);
     $this->object->setStaging();
 }