This explains how to integrate PayPal in website using REST API with PHP