Download Defender - Support


Download Defender XT - PayPal Setup Instructions

Creating Scripts

All fields on the PayPal configuration screens have context sensitive help to explain the information required.

For Buy Now scripts, the Downloads tab will list any products that will be downloaded for a single purchase price. While this is a single purchase it can include multiple downloads.

For Shopping Cart scripts, the Downloads tab will list all the products available on your site (think of it like a menu), and their corresponding prices. On the Button Code tab double-click each product in the list to get the code for that product's Add to Cart button.

When creating your thank you page you need to include the text $defenderlinks in your page where you want Download Defender to place the product links. For those of you using CSS, a class of defenderlink will be assigned to the <a> tag for style purposes. View the sample page for more details.

When you compile a PayPal script, you will have opportunity to save an IPN script as well. You only need one of these, so it's not necessary to save it each time. Upload the IPN script along with your Thank you scripts to your website.

Setting up IPN (Instant Payment Notification)

  • Login to your account at PayPal.
  • In the main screen, click on the Profile tab.
  • Then, click on the Instant Payment Notification Preferences link.
  • Make sure the Instant Payment Notification check box is "checked".
  • Enter the URL of your IPN script. 

    For example:  http://www.yourdomain.com/ipn.php
  • In Addition, make sure the Payment Data Transfer and Auto Return features in your PayPal account are turned OFF.  Despite their names, these features do not work correctly with IPN and will cause you to get an Access Denied message.

Paypal Button Code

A flaw in PayPal's system requires you to add the following code to all PayPal buttons:

<input type="hidden" name="rm" value="2">

Under certain circumstances customers can receive an Access Denied message if this code is omitted. If you use the built-in button generator in Download Defender the code is included automatically. Otherwise you will need to manually add it to all buttons.

Testing

Note:  These testing instructions came from the PayPal website and could be subject to changes in their User Agreement.  According to the PayPal, you can have both a Personal and Premier/Business account.  Each account will require it's own credit card as PayPal won't allow the same card number to be used on separate accounts.

Here's an easy way to test your IPN implementation with the live PayPal system:

  • Signup for a Personal PayPal account if you don't already have one, and add a credit card to the account. This will be your "buyer" account.
  • Make sure that your Business/Premier account is Verified. This is the account which uses IPN - your "seller" account.
  • Create a .01 button using your new thank you script as the Return url.  This option is found by clicking the "Add More Options" button at the bottom of the page on the PayPal site.
  • Place the button on a test page and make a purchase using your buyer account.
  • Log in to your seller account and refund the payment. (To refund a payment, go to the Transaction Details page and follow the Refund Payment link at the bottom.) The refund reverses the entire payment, including transaction fees. You only have 30 days to refund the payment.

Here is an example of some payment button code you might use for IPN testing:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="you@yourdomain.com">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="item_name" value="IPN Test">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="return" value="http://www.yourdomain.com/thankyou.php">
<input type="image" src="http://images.paypal.com/images/x-click-butcc.gif" name="submit">
</form>

According to PayPal, this testing method is free of charge (as long as you process the refund). You can also have friends or trusted clients send you test payments and then refund them, if you prefer not to open a second PayPal account.