T
T
Tatyana Degtyarenko2020-01-27 02:31:36
PHP
Tatyana Degtyarenko, 2020-01-27 02:31:36

How to set up a Yandex.money payment button?

How to set up a Yandex.money payment button?
a) a site on a plp-constructor
b) a payment method for an information product - Yandex money (since an individual)
c) the Yandex Money system makes it possible to create a button or form (BUT NOT A LINK) with auto-completion on my behalf of a certain amount (for example, 199 rubles and this amount later during the transaction, the user who wants to buy cannot change in the amount column) and a comment on the product (I I write the name, for example, a beauty marathon), among other things, when creating a form / button in the Yandex money system, and ADDITIONAL SETTINGS (it is important for me that the user who pays for my product enters his data, mail, name, phone, so that I can then understand who paid who did not paid for the product) and the icing on the cake(!!!) - after payment I need to transfer it to the cloud with the product - for this, in the additional settings of the form / button, I enter a link to this cloud in the REDIRECT column
e) I go to my plp - and put all this crap formed by Yandex into my button in the HTML button block ... I see an even bigger crap - I just put an ugly Yandex button on my beautiful site
e) with grief in half I find a programmer of a friend
he creates on my beautiful button, the JavaScript action
$("#go_to_pay").submit()
g) creates code for the invisible block of the HTML block on the site

<form method="POST" action="https://money.yandex.ru/quickpay/confirm.xml" id="go_to_pay">
<input type="hidden" name="receiver" value="номер кошелька яндексовского">
<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="199" data-type="number">
<input type="hidden" name="comment" value="Онлайн-запись">
<input type="hidden" name="need-fio" value="true">
<input type="hidden" name="need-email" value="false">
<input type="hidden" name="need-phone" value="true">
<input type="hidden" name="need-address" value="false">
<input type="hidden" name="paymentType" value="AC">
</form>

SO AFTER PAYMENT ON YANDEX MONEY THEY SHOULD BE DISAPPEARED TO THE SITE I NEED
in the picture the code without a link to the final site after payment (you need a redirect step at the end)5e2e266544f03662486068.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AUser0, 2020-01-27
@AUser0

After the line

<input type="hidden" name="paymentType" value="AC">

add another line
<input type="hidden" name="successURL" value="http://server.org/path">
in which instead http://server.org/pathwrite your address (your cloud with the product).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question