Answer the question
In order to leave comments, you need to log in
Why is the data substituted before sending to the Yandex form with payment not transmitted?
There is a payment form on the site:
<form action="https://demomoney.yandex.ru/eshop.xml" method="post" id="yaform">
<input type="text" name="name" placeholder="Ваше имя">
<input type="text" name="phone" placeholder="Ваш телефон">
<input type="text" name="mail" placeholder="Ваш e-mail">
<input name="shopId" value="155595" type="hidden"/>
<input name="scid" value="557917" type="hidden"/>
<input name="sum" value="0.00" type="hidden">
<input name="customerNumber" value="" type="hidden"/>
<input name="paymentType" value="AC" type="hidden"/>
<input name="orderNumber" value="" type="hidden"/>
<input name="cps_phone" value="" type="hidden"/>
<input name="cps_email" value="" type="hidden"/>
<input type="hidden" name="utm_term" value="<?php echo isset($_GET['utm_term']) ? $_GET['utm_term'] : '' ;?>">
<input type="hidden" name="utm_campaign" value="<?php echo isset($_GET['utm_source']) ? $_GET['utm_campaign'] : '' ;?>">
<input type="hidden" name="utm_content" value="<?php echo isset($_GET['utm_content']) ? $_GET['utm_content'] : '' ;?>">
<input type="hidden" name="utm_source" value="<?php echo isset($_GET['utm_source']) ? $_GET['utm_source'] : '' ;?>">
<input type="hidden" name="utm_medium" value="<?php echo isset($_GET['utm_medium']) ? $_GET['utm_medium'] : '' ;?>">
<button type="submit" name="button" class="default-button">Перейти к оплате</button>
<div class="form-message form-error">Заполните все поля.</div>
</form>
$('#yaform').on("submit", function(e) {
e.preventDefault();
amoPushContact(this);
yandexHandler(this);
this.submit();
})
<input name="customerNumber" value="" type="hidden"/>
After that, the redirect to the payment page takes place. But the system is not working correctly. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question