Y
Y
Ysery2021-01-11 19:40:47
Accelerated Mobile Pages
Ysery, 2021-01-11 19:40:47

Form code for collecting donations through Yumani on AMP pages, is it possible?

Good day, dear experts.

There is such a typical Yumani code (formerly Yandex Money) for collecting donations.

<form method="POST" action="https://yoomoney.ru/quickpay/confirm.xml">
  <input type="hidden" name="receiver" value="41001xxxxxxxxxxxx">
  <input type="hidden" name="formcomment" value="Проект «Железный человек»: реактор холодного ядерного синтеза">
  <input type="hidden" name="short-dest" value="Проект «Железный человек»: реактор холодного ядерного синтеза">
  <input type="hidden" name="label" value="$order_id">
  <input type="hidden" name="quickpay-form" value="donate">
  <input type="hidden" name="targets" value="транзакция {order_id}">
  <input type="hidden" name="sum" value="4568.25" data-type="number">
  <input type="hidden" name="comment" value="Хотелось бы получить дистанционное управление.">
  <input type="hidden" name="need-fio" value="true">
  <input type="hidden" name="need-email" value="true">
  <input type="hidden" name="need-phone" value="false">
  <input type="hidden" name="need-address" value="false">
  <label>
    <input type="radio" name="paymentType" value="PC">ЮMoney</label>
  <label>
    <input type="radio" name="paymentType" value="AC">Банковской картой</label>
  <input type="submit" value="Перевести">
</form>


Is it possible to make it work on AMP pages? There, after all, it seems like POST works through it's place . There json exchange goes like that. I tried to insert the code indicated code - it does not work, the page on which the donation directly occurs does not open, and the AMP page does not become valid at all.

I googled for a variety of queries, but everywhere there are examples of code for subscribing to mailing lists, and contact forms are provided, and I could not find anything even close to what is required in the case described above.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-11
@vabka

For forms and iframes to work in AMP, you need to add this:
https://amp.dev/ru/documentation/components/amp-form/
https://amp.dev/documentation/components/amp-iframe/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question