A
A
Alexander Koshelev2017-09-03 16:48:54
PHP
Alexander Koshelev, 2017-09-03 16:48:54

Who knows how to set up Yandex payment for a site with a video?

Hello guys, how to implement the following correctly?: I have a site with vids (one-page) in it 40 videos, I want to put Yandex payment for each video. Tobish, a person clicks on watching a video with a main one and transfers it to a secondary one where the video that he wants to watch is placed on a large plan and payment pops up in front of the whole screen in front of him, he suffered a lot, honestly, nothing happened, who can tell me, please tell me the essence and logic of things!!!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Shashenkov, 2017-09-03
@Xandr24

We will assume that users are first authorized.
1) The user goes to the video, we check in the database whether he has the rights to view this video.
2) If yes, then we show it, if not, we create an entry in the database with a unique id and payment data, a link to the payment and expose the user instead of the video.
3) The user goes to pay, pays. Yandex sends the payment status, where the id of the entry in the database will be. We give the rights to view the video, notify the user. Ready.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question