Answer the question
In order to leave comments, you need to log in
How to transfer an array of data when connecting YandexMoney online payment?
Hello Guru.
I want to connect online payment via YandexMoney using the form. Many similar systems have similar forms for quick connection.
A simple form of data transfer:
<form method="POST" action="https://money.yandex.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="">
<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">Яндекс.Деньгами</label>
<label><input type="radio" name="paymentType" value="AC">Банковской картой</label>
<input type="submit" value="Перевести">
</form>
<input type="hidden" name="label" value="">
$name = $_POST['label'];
Answer the question
In order to leave comments, you need to log in
Put the data in the database
Generate a hash string (for example, by id)
Pass the hash to the form
In the callback processing, look for the record in the database by the hash
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question