I'm trying to get paypal sandbox to work with donate script, though it doesnt add points, here's config:
paypal.htm
ipn.php
Help appreciated, thanks.
paypal.htm
Code:
<input type="hidden" name="business" value="[email protected]">
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="notify_url" value="http://MyNoIPaddressThatIsSecret/paypal/ipn/ipn.php">
<input type="hidden" name="return" value="http://MyNoIPaddressThatIsSecret/">
ipn.php
Code:
----------> found this code in google stackoverflow: $verify_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_notify-validate&' . http_build_query( $_POST );
if( !strstr( file_get_contents( $verify_url ), 'VERIFIED' ) ) return false;
$mysql = new mysqli('localhost', 'root', 'SECRET', 'secretDatabaseName');
$receiver = '[email protected]';
Help appreciated, thanks.