A quite common problem in various projects is integrating a payment functionality where the site acts as the middleman between the author of a paid content and the end user. Premium themes or video courses, for instance. The user pays the website, then the website pays the author, keeping some cut to itself of course. That behavior can be automated with PayPal, and with them, it’s called Adaptive Payments, or, to be more specific, Chained Payments. In the documentation, they’re illustrated like this:
In this tutorial, we’ll follow a very simple practice to stick this mechanism into a Yii project. It will be easily modifiable, and you’ll be able to use it for nearly any payment purposes. Ready for it? Let’s go!