Paranoia\Payment\Adapter\Gvp::getApiCredentialsByRequest PHP Method

getApiCredentialsByRequest() private method

returns api credentials by transaction type of request.
private getApiCredentialsByRequest ( string $transactionType ) : array
$transactionType string
return array
    private function getApiCredentialsByRequest($transactionType)
    {
        $isAuth = in_array($transactionType, array(self::TRANSACTION_TYPE_SALE, self::TRANSACTION_TYPE_PREAUTHORIZATION, self::TRANSACTION_TYPE_POSTAUTHORIZATION));
        if ($isAuth) {
            return array($this->configuration->getAuthorizationUsername(), $this->configuration->getAuthorizationPassword());
        } else {
            return array($this->configuration->getRefundUsername(), $this->configuration->getRefundPassword());
        }
    }