Be very very wary of using code that you obtain via an open internet forum when handling money - you could be liable for any losses incurred as a result of running malicious code!
PayPal provide support for developers - including a Getting Started guide at the
PayPal Developer site[
^]