Posted by admin in BNCScriptsAug 4th, 2009 | no responses
bnc paypal ipn, install bnc paypal ipn, install paypal ipn, paypal ipn, paypal ipn for multiple products
Under most circumstances installing BNC scripts is a very simple process and takes less than five minutes to complete. As you know the installation of every script is free of charge. However, if you wish to install BNC Paypal IPN yourself, the following guide will help.
Here”s the quick version of the instructions
- Download and unzip the BNC package, if you haven”t already. You will receive the download link via email.
- Make a folder on your server with the name “paypal”
- Upload the files from the unzipped package to “paypal” folder
- Inside “paypal” folder make a new folder ( with a secret name ) eg. “myfiles009″ – in this folder upload your products
- Open settings.php with your favourite editor
- Now you can put your products in settings.php
This is the structure: product[number] = array(”Name” ,”Price” , ”Download Link”);
This should be for your first product : $products[1] = array(”My ebook”,”5.99”,”http://yourwebsite.com/paypal/myfiles009/myebook.pdf”);
This should be for your second product : $products[2] = array(”My program”,”6.99”,”http://yourwebsite.com/paypal/myfiles009/myprogram.zip”);
and so on…
- Write down the values for your notification email ,the download email , the currency, how many hours the download link will be available and the path of your paypal folder ( http://yourwebsite.com/paypal/ )
The paypal form
- Open index.html with your favourite editor to see the sample form
- Replace paypal@example.com with your paypal email
- This is the code for your first product
- <input name=”item_name_1” type=”hidden” value=”My ebook” />
<input name=”item_number_1” type=”hidden” value=”1” />
<input name=”amount_1” type=”hidden” value=”5.99″ />
<input name=”quantity_1” type=”hidden” value=”1″ /></li>
- This is the code for your second product
- <input type=”hidden” name=”item_name_2” value=”My program”>
<input type=”hidden” name=”item_number_2” value=”2“>
<input type=”hidden” name=”amount_2” value=”6.99″>
<input type=”hidden” name=”quantity_2” value=”1″>
- Replace <input type=”hidden” name=”notify_url” value=”http://example.com/paypal.php”> with your own url . In our case <input type=”hidden” name=”notify_url” value=”http://yourwebsite.com/paypal/paypal.php”>
- Also replace http://example.com/thank-you.html with your thank you page
That’s it!