Answer the question
In order to leave comments, you need to log in
How does the account replenishment scheme work on the site?
Good afternoon,
Tell me, what does it look like from a technical point of view, buying credits on some site (1 credit = 1 rub.) And linking them to a user on the site?
I would be grateful for articles on the topic.
Thank you.
Answer the question
In order to leave comments, you need to log in
On the technical side, the algorithm is as follows:
- there is an account on the site, the account has the value "ballance"
- a payment gate is connected (the same robokassa or something else)
- an authorized user presses the "top up" button, goes to the payment gate, makes a payment
- the gate returns the result (error or success), if successful - update the "ballance" value to the required amount received in the confirmation from the gate
- profit!
Further, making "purchases" on the site, the "ballance" value will be updated accordingly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question