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)
try {
$authId = $authorization->getId();
$amt = new Amount();
$amt->setCurrency("USD")
->setTotal(1);
### Capture$capture = new Capture();
$capture->setAmount($amt);
AuthorizationCapture
This sample code demonstrates how you can capture a previously authorized payment. API used: /v1/payments/payment https://developer.paypal.com/webapps/developer/docs/api/#capture-an-authorization