\Bitrix\Sale\Payment::getRegistryType();
Method returns register type with associated object. Static method.
No parameters