Answer the question
In order to leave comments, you need to log in
Ajax request to m.ok.ru/api/show_payment?
Making a mobile html5 game under OK.
We made a payment via the Mobile API - a request via m.ok.ru/api/show_payment. Everything is working.
But it turns out to be very inconvenient for the user - 2 times a redirect (from the game and back).
I want to do it beautifully - through an ajax request, and the response is processed in the game itself (without refreshing the page).
Expected received
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' 192.168.1.5:3000 ' is therefore not allowed access.
Answer the question
In order to leave comments, you need to log in
It is impossible, on the OK side there is a dialogue with the user, where he confirms the purchase.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question