"; try { $authorization = Authorization::get($authorizationId, $apiContext); $amount = new Amount(); $amount->setCurrency("USD"); $amount->setTotal(1200); // ### Reauthorize with amount being reauthorized $authorization->setAmount($amount); $reAuthorization = $authorization->reauthorize($apiContext); } catch (Exception $ex) { // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printError("Reauthorize Payment", "Payment", null, null, $ex); exit(1); } // NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY ResultPrinter::printResult("Reauthorize Payment", "Payment", $authorizationId, null, $reAuthorization);