Q
Q
qdrj2015-08-19 17:15:38
Classmates
qdrj, 2015-08-19 17:15:38

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.

The question is, is it even possible to do this? If so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Valery Ozhiganov, 2015-08-20
@qdrj

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 question

Ask a Question

731 491 924 answers to any question