$authorization->setAmount($amount);
$reauthorization = $authorization->reauthorize($apiContext);
} catch (PayPal\Exception\PPConnectionException $ex) {
echo "Exception: " . $ex->getMessage() . PHP_EOL;
var_dump($ex->getData());
exit(1);
}
?>
<html>
<head>
<title>Reauthorize a payment</title>
</head>
<body>
<div>
Reauthorization Id:
<?php echo $reauthorization->getId();?>
</div>
<pre>
<?php var_dump($reauthorization->toArray());?>
</pre>
<a href='../index.html'>Back</a>
</body>
</html>
Reauthorization Sample
This sample code demonstrates how you can reauthorize a PayPal account payment. API used: v1/payments/authorization/{authorization_id}/reauthorize