Answer the question
In order to leave comments, you need to log in
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>';
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question