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 a new authorization to get authorization Id createAuthorization defined in common.php
Lookup the authorization.
Perform a capture
AuthorizationCapture
This sample code demonstrates how you can capture a previously authorized payment. API used: /v1/payments/payment