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
)
Perform a capture
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
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