• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to setup PayPal in your website. [GESIOR AAC]

LoLaye

Active Member
Joined
Dec 23, 2008
Messages
3,774
Solutions
1
Reaction score
44
Location
Sweden
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
PHP:
<input type="hidden" name="item_name" value="YOURITEMNAME">
To what you want them to see when they are buying points

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">
Change YOURADDRESS.COM to your website's address.

(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]") {
Change [email protected] to your email.

Save and we're done :)

Rep++ is very appreciated.​
 
Good but how do i put like an index before buyings points ?
An index O.O? Yes a introduction and choose between
Paypal or Contenido Pago

Help please :/

Here i leave an image
Paypal 2.jpg
 
Last edited:
there's anothers new paypal scripts more better :/. That's old one
 
Can you explain how to enable IPN on your paypal account aswell? 'Cause i saw that you need to that in order for paypal to work?
 
Back
Top