Answer the question
In order to leave comments, you need to log in
How to accept payments in an android application built through Cordova?
Good afternoon. Tell me the mechanism please.
I am making an application for android, the essence of it is to collect email addresses and provide some paid functionality.
There is no user registration in it, only it is possible to enter any email.
And I don’t understand how I can sell something in this case? There is no authorization in the application. Is it possible to attach a robokassa and "attach" the payment to the entered email? Or do I need to do authorization and fasten payment through google in the application?
Answer the question
In order to leave comments, you need to log in
See: You need a server part that will generate a link for the robokassa according to the data transferred from the application (the amount and, for example, the user's e-mail or device UUID, well, something unique). The server writes the UUID and the amount to the database, generates a transaction ID with the "not paid" status, and generates a link using the Robokassa API (pass the transaction ID and the amount).
You open this link through inappbrowser
and in the background, or on the inappbrowser close event, check the payment status (AJAX) . The payment status must be changed according to the Robokassa callbacks (payment received or payment error).
The task is simple, but beautiful implementation will require the study of all the nuances
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question