You can capture and process a previously created authorization
by invoking the $authorization->capture method
with a valid ApiContext (See bootstrap.php for more on ApiContext)
create payment to get authorization Id createAuthorization defined in common.php
Get the authorization
AuthorizationCapture
This sample code demonstrate how you can capture the authorized payment API used: /v1/payments/payment