M
M
Maxim Tkach2016-11-27 12:26:20
Classmates
Maxim Tkach, 2016-11-27 12:26:20

Problems with payment ok.ru what's wrong?

Well, I took an example of a payment https://github.com/odnoklassniki/ok-js-sdk is configured and it seems to work, but
I don’t know how this social network works,
it offers authorization twice
Dibilism
Where is the
error
TID is a token

$sign=md5("application_key={$public}code=1name=Payprice=1".md5($_COOKIE['TID'].$params['client_secret']));
echo'<a href="http://m.ok.ru/api/show-payment?application_key='.$public.'&access_token='.$_COOKIE['TID'].'&sig='.$sign.'&code=1&name=Pay&price=1">aaa</a>';

Why can't you redirect them by url with php
And all the
example authorization
db006f6a02034de8826125d14457e7da.PNG
Потом вроде норм но что это за фигня
вроде баланс норм но предлагает заказть оки 9d7edba2397b4c529e0850fc5bf11019.PNG
После нажимаю заказать пишет 445d889a567b48bbb7dcae10f7bda7d1.PNG
Нажимаю закрыть e7d02eca374f4f3ab5d0c86d661174ba.PNG
Еле вызвали мерчант
Теперь сам мерчант не пашет у них

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vjacheslav Kanivetc, 2016-11-28
@profikgames

1. Signature. counted as md5(parameters + secret) - see example
2. You can redirect by URL and not open a new window, they just usually prefer not to reload the site / application.
3. The payment system is on prevention - it means that your script did not answer that such a payment can be made. At the time of payment, the OK payment system pulls your script handler (specified in the application settings), you must confirm that the payment is valid, but most likely they didn’t answer anything at all or registered the wrong handler. - read apiok.ru
4. When the payment is closed, a redirect to the prescribed application site occurs. Is it listed for you? - look at an example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question