/** * Receives status of payment from Gopay WS * * @return array */ public function getStatus() { if ($this->result !== NULL) { return $this->result; } return $this->result = GopaySoap::isPaymentDone((double) $this->valuesToBeVerified['paymentSessionId'], (double) $this->gopayId, $this->getVariable(), (int) $this->getSumInCents(), $this->getCurrency(), $this->getProductName(), $this->gopaySecretKey); }