/** * @param $payPassword * @return MonetaSdkResult * @throws MonetaSdkException */ public function processEncryptPayPassword($payPassword) { $this->calledMethods[] = __FUNCTION__; $this->cleanResultData(); $this->checkMonetaServiceConnection(); $secureCode = null; $secret = $this->sdkGetSecretFromAccountProfile(); if ($secret) { $secureCode = base64_encode(MonetaSdkUtils::encrypt($payPassword, $secret)); } $this->data = array('result' => $secureCode); return $this->getEmptyResult($this->data); }