D
D
dmitrytut2014-10-23 23:47:44
Electronic commerce
dmitrytut, 2014-10-23 23:47:44

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

2 answer(s)
I
Igor Vorotnev, 2014-10-24
@dmitrytut

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.

2
2vtlk, 2014-10-24
@2vtlk

Here is a description for several languages
​​https://www.robokassa.ru/ru/HowTo.aspx

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question