[Error] 
Call to a member function GetID() on null (0)
/home/bitrix/www/bitrix/modules/sale/lib/payment.php:304
#0: Bitrix\Sale\Payment->onFieldModify(string, string, string)
	/home/bitrix/www/bitrix/modules/sale/lib/internals/entity.php:201
#1: Bitrix\Sale\Internals\Entity->setField(string, string)
	/home/bitrix/www/bitrix/modules/sale/lib/payment.php:854
#2: Bitrix\Sale\Payment->setField(string, string)
	/home/bitrix/www/bitrix/modules/sale/lib/payment.php:723
#3: Bitrix\Sale\Payment->setPaid(string)
	/home/bitrix/www/bitrix/modules/sale/lib/compatible/ordercompatibility.php:2270
#4: Bitrix\Sale\Compatible\OrderCompatibility::payFromBudget(object, boolean, NULL)
	/home/bitrix/www/bitrix/modules/sale/lib/compatible/ordercompatibility.php:834
#5: Bitrix\Sale\Compatible\OrderCompatibility->fillPaymentCollectionFromRequest(array)
	/home/bitrix/www/bitrix/modules/sale/lib/compatible/ordercompatibility.php:1809
#6: Bitrix\Sale\Compatible\OrderCompatibility::modifyOrder(string, array)
	/home/bitrix/www/bitrix/modules/sale/lib/compatible/ordercompatibility.php:1642
#7: Bitrix\Sale\Compatible\OrderCompatibility::update(integer, array, boolean)
	/home/bitrix/www/bitrix/modules/sale/mysql/order.php:169
#8: CSaleOrder::Update(integer, array)
	/home/bitrix/www/local/php_interface/include/agent_autopay.php:33
#9: autopayInOrder()
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php(163) : eval()'d code:1
#10: eval
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:163
#11: CAgent::ExecuteAgents(string)
	/home/bitrix/www/bitrix/modules/main/classes/mysql/agent.php:40
#12: CAgent::CheckAgents()
	/home/bitrix/www/bitrix/modules/main/include.php:262
#13: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog_before.php:14
#14: require_once(string)
	/home/bitrix/www/bitrix/modules/main/include/prolog.php:10
#15: require_once(string)
	/home/bitrix/www/bitrix/header.php:1
#16: require(string)
	/home/bitrix/www/catalog/index.php:1
#17: include_once(string)
	/home/bitrix/www/bitrix/modules/main/include/urlrewrite.php:159
#18: include_once(string)
	/home/bitrix/www/bitrix/urlrewrite.php:2