The biggest difference between creating a payment, and authorizing a payment is to set the intent of payment to correct setting. In this case, it would be 'authorize'
Setting intent to authorize creates a payment authorization. Setting it to sale creates actual payment
For Sample Purposes Only.
Create a payment by calling the payment->create() method
with a valid ApiContext (See bootstrap.php for more on ApiContext
)
The return object contains the state.
Authorize Payment
This sample code demonstrates how you can authorize a payment. API used: /v1/payments/authorization https://developer.paypal.com/webapps/developer/docs/integration/direct/capture-payment/#authorize-the-payment