L
L
likejavascript2015-07-03 17:35:12
Payment systems
likejavascript, 2015-07-03 17:35:12

How to process payments from Yandex Money API correctly?

It is necessary to fasten payment through the Yandex Money API in your service. Registered a new application, posted a payment button . But there are questions that I would like to ask the habra community:
1. How to process the payment on your server and write data to the database that the user made a payment on the site after he entered the credit card details on the Yandex Money site. Does the Yandex Money server send a request to my server to some request_url that I can process?
2. Is it possible to make test payments to check if the payment works correctly?
Thank you.
PS: and it is still not clear how to guarantee that the user will pay exactly the amount that I require. After all, I place a form with a button in a hidden field which indicates the amount that the user can easily change.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey Burov, 2015-07-03
@BuriK666

https://sp-money.yandex.ru/myservices/online.xml
https://tech.yandex.ru/money/doc/dg/reference/noti...

L
likejavascript, 2015-07-04
@likejavascript

Andrey, thanks for the answer, but will I receive a notification about the payment after some time?
I just need to get it immediately when the user makes a payment so that I can process the result of the payment.
That is, the scheme is as follows: the user clicks on the "Pay" button, he is transferred to the payment form via Yandex Money, after the payment there is a request to my server, which I check, process and write to the database if everything is ok

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question