Use Paypal Express. To get the correct API credentials:
Log in to your PayPal Business account.
Click the My Account tab.
Click the Profile tab. ...
Click Request API credentials under Account information.
Click Set up PayPal API credentials and permissions under Option 1.
Click Request API Credentials.
Click Request API signature.
Click Agree and Submit.