LoLaye
Active Member
Okay since i've seen alot of threads asking for support about how to setup paypal, im here to show you.
Step 1. download this script for paypal:
http://otland.net/f118/paypal-script-release-24188/
Step 2. Open htdocs/www if you're using UniServ and extract the files you downloaded there.
Step 3. Now open the extracted folder, you will see 3 files
paypal.htm
paypal.php
ipn
Step 4. Right click on paypal.htm and open it with notepad++ or whatever you are using.
Step 5. Edit the following lines to fit your needs:
Line 17 (PHP]<input type="hidden" name="business" value="[email protected]">[/PHP] Change [email protected] to your PAYPAL email.
Line 19
To what you want them to see when they are buying points
Line 27,28
Change YOURADDRESS.COM to your website's address.
(OPTIONAL)
Line 1-3 (
Line 6,10 if you'd like to change the price/recieved points
If you changed the price then you have to change this to the price you changed to.
Line 22
Step 6. Open the ipn folder then open ipn.php
WARNING: DO NOT CHANGE ANYTHING IN HTACCES
Line 2-5
Line 14
Change [email protected] to your email.
Save and we're done
Rep++ is very appreciated.
Step 1. download this script for paypal:
http://otland.net/f118/paypal-script-release-24188/
Step 2. Open htdocs/www if you're using UniServ and extract the files you downloaded there.
Step 3. Now open the extracted folder, you will see 3 files
paypal.htm
paypal.php
ipn
Step 4. Right click on paypal.htm and open it with notepad++ or whatever you are using.
Step 5. Edit the following lines to fit your needs:
Line 17 (PHP]<input type="hidden" name="business" value="[email protected]">[/PHP] Change [email protected] to your PAYPAL email.
Line 19
PHP:
<input type="hidden" name="item_name" value="YOURITEMNAME">
Line 27,28
PHP:
<input type="hidden" name="notify_url" value="http://www.YOURADDRESS.com/ipn/ipn.php">
<input type="hidden" name="return" value="http://www.YOURADDRESS.com">
(OPTIONAL)
Line 1-3 (
PHP:
<b>Automatic PayPal Donation System.</b><br><br>
The donation costs 10 EUR (incl. VAT).<br>
After the donation you will receive <b>10 points + 2 bonus points (Tot. 12 points)</b> in your account automatically. <br>Because you donate with PayPal / Creditcard you will receive +2 extra bonus points for free.<br><br>
Line 6,10 if you'd like to change the price/recieved points
PHP:
1. You need a valid creditcard <b>or</b> a PayPal account with a required balance [10 EUR]. <br>
PHP:
5. After the transaction 12 points will be automatically added to your account. <br>
If you changed the price then you have to change this to the price you changed to.
Line 22
PHP:
<input type="hidden" name="amount" value="10.0">
Step 6. Open the ipn folder then open ipn.php
WARNING: DO NOT CHANGE ANYTHING IN HTACCES
Line 2-5
PHP:
$mysql_host = 'localhost'; //Leave at localhost
$mysql_user = 'root'; //DB User
$mysql_pass = ''; //DB Pass
$mysql_db = ''; //DB Name
Line 14
PHP:
if ($payment_status == "Completed" & $receiver_email == "[email protected]") {
Save and we're done
Rep++ is very appreciated.