This sample code demonstrates how you can void an authorized payment. API used: /v1/payments/authorization/<{authorizationid}>/void"
You can void a previously authorized payment by invoking the $authorization->void method with a valid ApiContext (See bootstrap.php for more on ApiContext)
ApiContext
Lookup the authorization
Void the authorization
VoidAuthorization
This sample code demonstrates how you can void an authorized payment. API used: /v1/payments/authorization/<{authorizationid}>/void"