Answer the question
In order to leave comments, you need to log in
Why doesn't CSalePaySystemAction::GetParamValue work in helper.php?
Hello. I am embedding the payment system in the Bitrix Framework. After setting up, I go to the payment page and it gives an error.
The key 'APPROVE_METHOD' was not found in the GLOBALS[SALE_CORRESPONDENCE] array and no default value was defined.
.description.php
CSalePaySystemAction::GetParamValueonly available in file
payment.phpbut the payment system is written so that helpers work first.
helper.phpin which there is an appeal to the data of the payment system
CSalePaySystemAction::GetParamValue("APPROVE_METHOD");which is why the error occurs.
.description.phpdoes not solve this problem.
Answer the question
In order to leave comments, you need to log in
and in a helper you connect classes through namespaces?
Most probably not
Interestingly, CSalePaySystemAction::GetParamValue also returned empty in payment.php. But there was $arResult, from where I got everything I needed.
And on another site there is no $arResult, but CSalePaySystemAction::GetParamValue works. Wonderful are your Bitrix))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question