#
#
# artur #2015-03-24 11:16:38
PHP
# artur #, 2015-03-24 11:16:38

How to set up automatic acceptance of Yandex.Money?

Hello!
Began to read the documentation and much is not clear. Now I registered the application (php), got the Application ID, downloaded the SDK from here https://github.com/yandex-money/yandex-money-sdk-php/ ... I don’t understand what to do next ...
Tell me or poke your nose into a normal fresh example. Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Entelis, 2015-03-24
@passshift

habrahabr.ru/sandbox/83253

C
Centrino, 2015-03-24
@Centrino

Everything is described on the github itself.
Yes, and there is official documentation
https://tech.yandex.ru/money/doc/dg/concepts/money...
1. On your website, the client chooses to pay via Yandex, for example, 100 rubles
2. You create a request with your application data and rights, for example, to a one-time withdrawal of funds from the client in the amount of 100 rubles and redirect the client to the url. (For example, you can also add get data to the request that will be returned to you, for example, the order number and some kind of signature, in order to identify the order on your side, for example, if you have a store)
3. The client goes to the Yandex website, confirms that he allows your application to withdraw 100 rubles, and after that Yandex returns it to the URL that you have registered in the application settings, there is a special code in the get request and, if you added, your additional data.
4. After coming to you with the data, you start the withdrawal of funds from the client's wallet:

  • Exchange the code for a token
  • Use the token to create a withdrawal request
  • You receive a response about the successful withdrawal, credit the order and inform the client that everything went well

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question