M
M
Mikhail Ivanov2017-05-15 12:03:05
PHP
Mikhail Ivanov, 2017-05-15 12:03:05

How to automatically send a letter with a video course after a person has paid?

In general, there is a site selling courses, when you click on the "buy a course" button, you go to Yandex payment, you pay, after the person has paid, a letter with the course is automatically sent to the mail. Tell me how to do this, maybe there are some programs

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Bukharev, 2017-05-15
@mishaweb

When you click on Buy a course, we create a record with information about the order in the system, pass the ID of the created record in the payment form.
Next, the client is sent to the payment page in Yandex.
After a successful payment, Yandex knocks on your service and sends information about the payment, search for the order by the previously transmitted identifier, check the status and amount that the payment has been made, mark the order as paid, and send an email with the rate to the client.
Something like this...

E
Eugene Volf, 2017-05-15
@Wolfnsex

Tell me how to do this, maybe there are some programs

Usually, any electronic cash register (I think Yandex is no exception in this case) redirects to the seller's website after a successful payment, respectively. parameters. After that, you check the payment and make resp. actions, for example, send something to the user's mail. This is usually done in the same language as the site itself.
Another option is to find a ready-made solution or a ready-made site (such sites are also often rented out) that already have similar functionality. At one time I met a lot of them, mostly not free (which is quite obvious for tasks of this kind).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question