The technique you mean it is called as IPN, already presented by Paypal. You simply use your current Paypal account, create Pay Now button from merchant tools, and present a PHP script for Paypal callback function. And it's done. The task is only for creating the callback function. That's it.