• Модуль: seo
  • Путь к файлу: ~/bitrix/modules/seo/lib/checkout/services/accountyookassa.php
  • Класс: BitrixSeoCheckoutServicesAccountYookassa
  • Вызов: AccountYookassa::getProfile
public function getProfile()
{
	$response = $this->getRequest()->send([
		'methodName' => 'profile.info',
		'parameters' => []
	]);

	$response = $response->getData();
	if (is_array($response) && isset($response['account_id']))
	{
		return [
			'ID' => $response['account_id'],
			'NAME' => $response['account_id'],
		];
	}

	return null;
}