try { $response = $velocityProcessor->adjust(array('amount' => 3.01, 'TransactionId' => $captxnid)); if (isset($response['Status']) && $response['Status'] == 'Successful') { echo 'Adjust Successful!</br>'; echo 'Amount: ' . $response['Amount'] . '</br></br>'; } else { // some error print_r($response); } } catch (Exception $e) { echo $e->getMessage(); } $adjusttxnid = $response['TransactionId']; /******************************************************Undo******************************************************************************** */ try { $response = $velocityProcessor->undo(array('TransactionId' => $adjusttxnid)); if (isset($response['Status']) && $response['Status'] == 'Successful') { echo 'Undo Successful!</br>'; echo 'TransactionId: ' . $response['TransactionId'] . '</br></br>'; } else { // some error print_r($response); } } catch (Exception $e) { echo $e->getMessage(); } /******************************************************ReturnById************************************************************************* */ try { $response = $velocityProcessor->returnById(array('amount' => 5.03, 'TransactionId' => $authCapTransactionid)); if (isset($response['Status']) && $response['Status'] == 'Successful') { echo 'ReturnById Successful!</br>';