I want to be automatically redirected to another page after successful payment.
<div id="paypal-container-CSD5FA"></div>
<script>paypal.HostedButtons({hostedButtonId: "CSD5FA",}).render("#paypal-container-CSD5FA")</script>
<?include 't.php';
?>
Edit your button at www.paypal.com/buttons and set the “Thank You” page to the full path to t.php
2