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
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
VoidAuthorization
This sample code demonstrates how you can void an authorized payment. API used: /v1/payments/authorization/<{authorizationid}>/void"