There is an online store samopisny. To him, one programmer attached Yandex cashier. But sometimes customers complain that when choosing a payment on the site, the page freezes. It was experimentally revealed that the case is in the form of sending the Yandex ticket office. It was made somehow very strange.
private function __getYandexForm($id, $total) { return ' <form name="ShopForm" id="yandexForm" method="POST" action="'. $this->action_url .'"style="display:none"> <input type="hidden" name="shopId" value="' . $this->shopid . '"> <input type="hidden" name="scid" value="' . $this->shid . '"> ΠΠ΄Π΅Π½ΡΠΈΡΠΈΠΊΠ°ΡΠΎΡ ΠΊΠ»ΠΈΠ΅Π½ΡΠ°/ΠΠΎΠΌΠ΅Ρ Π·Π°ΠΊΠ°Π·Π°:<br> <input type=text name="customerNumber" size="74" value="' . $id . '"><br><br> Π‘ΡΠΌΠΌΠ°:<br> <input type=text name="Sum" size="74" value="' . $total . '"><br><br> Π‘ΠΏΠΎΡΠΎΠ± ΠΎΠΏΠ»Π°ΡΡ:<br><br> <input name="paymentType" value="PC" type="radio" >ΠΠΏΠ»Π°ΡΠ° ΡΠΎ ΡΡΠ΅ΡΠ° Π² Π―Π½Π΄Π΅ΠΊΡ.ΠΠ΅Π½ΡΠ³Π°Ρ
(ΠΊΠΎΠΌΠΈΡΡΠΈΡ 3%)<br> <input name="paymentType" value="AC" type="radio" checked>ΠΠΏΠ»Π°ΡΠ° Π±Π°Π½ΠΊΠΎΠ²ΡΠΊΠΎΠΉ ΠΊΠ°ΡΡΠΎΠΉ (ΠΊΠΎΠΌΠΈΡΡΠΈΡ 3.5%)<br> <br><input type=submit value="ΠΠΏΠ»Π°ΡΠΈΡΡ"><br> </form> <script> jQuery("form#yandexForm").submit(); </script>'; } That is, in fact, the script returns to the page the form of Yandex itself, along with the jquery-script, imitating the sending of this generated form. And it is precisely this step that sometimes does not work for everyone.
Is it possible to alter it somehow humanly? Who had experience with Yandex cashier?