Replace $authorizationid with any static Id you might already have. It will do a void on it
You can void a previously authorized payment
by invoking the $authorization->void method
with a valid ApiContext (See bootstrap.php for more on 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"