You can void a previously authorized payment
by invoking the $authorization->void method
with a valid ApiContext (See bootstrap.php for more on ApiContext
)
create an authorization to get authorization Id createAuthorization is defined in common.php
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"