Problems with payment ok.ru what's wrong?

Well, I took the example of payment https://github.com/odnoklassniki/ok-js-sdk configured and it kind of works, but

I don't know how this social network works
it authorization twice offers

Dibilizm

Where is
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 not redirectout on their url with PHP
And in the future.

Example of authorization
db006f6a02034de8826125d14457e7da.PNG
Then like the rules but what the hell
like the balance rules but offers order Oki 9d7edba2397b4c529e0850fc5bf11019.PNG
After you click to order writes 445d889a567b48bbb7dcae10f7bda7d1.PNG

Click close e7d02eca374f4f3ab5d0c86d661174ba.PNG

Barely caused a merchant
Now the merchant does not plow them
July 2nd 19 at 13:57
1 answer
July 2nd 19 at 13:59
Solution
1. Signature. it is considered as md5(parameters + secret) - see example
2. You can redirect to a URL and not open a new window, just usually prefer not to restart the website/app.
3. Payment system on prevention means that your script is not said that such payment can be made. At the time of payment payment system OK pulls your script-handler (set in app settings), you must confirm that the payment is valid, and most likely nothing said or ordered the wrong handler. - read apiok.ru
4. When closing bills there is a redirect on the web. You have it listed? - see example
So you took the 2 question but where is the error https://docs.google.com/document/d/e/2PACX-1vTej0U...

everything is done by your docks - nikita.Stracke commented on July 2nd 19 at 14:02
Well, here it is:
1. Signature. it is considered as md5(parameters + secret) - see example
And you do md5(parameters + md5(token + secret))
Here from the same ok-js.sdk example of the signature calculation - hannah.Marquardt commented on July 2nd 19 at 14:05
: write a test opening for PHP and you're tired of your leftist examples Java
and Java - nikita.Stracke commented on July 2nd 19 at 14:08
who could barely plow - nikita.Stracke commented on July 2nd 19 at 14:11
: it can be an Example for PHP visual
Working example
As for the sdk
That on Android
and then you have no examples on php, I have even moved the function with the sdk for PHP not working, then what is the iti? - nikita.Stracke commented on July 2nd 19 at 14:14
: and may I add in the VC and tired of every time to create a new topic - nikita.Stracke commented on July 2nd 19 at 14:17
PHP is a server - side language. Opening bills is a client action, accordingly in a natural way it is done in javascript/actionscript. Therefore, the example open and give javascript. The maximum that you can do in php is redirect to the url with the payment at some client action, but why the extra step if you directly with a customer to open a payment order?

What should I do in PHP is in fact processing fee.. There is an example of this work on github/apiok under example html_app_example - hannah.Marquardt commented on July 2nd 19 at 14:20

Find more questions by tags Classmates