1. Create your "Buy Now" or "Subscribe" or "Add to Cart" button
- Log in to your Paypal account
- Click on the "Merchant Services" tab
- From under the "Create Buttons" section, choose any one of the following links based on the type of product you wish to sell.
* Add to cart (for multiple-item purchases)
* Buy now (for one-time products)
* Subscribe (for subscription-based recurring products)
That will bring you to the actual button-creation page.
- "Item Name"
Make sure the Paypal "Item Name" is the EXACT same spelling and case as the DAP "Product Name" that you created within DAP. In fact, login as DAP admin, edit the product, copy the text from the "Product Name" field, then paste this into your Paypal "Item Name" field, so that there are no typos. If the product names don't match, DAP will ignore any IPN posts coming in from Paypal, which means no account will be created for your new member.
- Finally, when creating the button, just add a custom varible to the button as follows:Under "Step 3: Customize advanced features (optional)" tab, within the "Advanced Variables" text box, enter the following (change the text YourSite.com below to your domain name).
notify_url=http://YourSite.com/dap/dap-paypal.php
2. Save the button.
3. Copy the HTML code for this button
4. Publish the code on your web site's sales page
..or WP page or post.
That's it!
So when someone subscribes to, or purchases your product using this button, Paypal will send an IPN notification to your web site to the above link.
DAP will then verify the product and payment status, and then will automatically add give the buyer/subscriber access to that product.
If the email id used in this purchase is not already associated with an account on your site, then DAP automatically creates a new account, and sends the buyer an "activation" email that requires them to click on a link to confirm and activate their account.
But If this email id belongs to someone who already has an account in DAP (existing buyer, purchased a different product this time), then DAP doesn't create a new account for this user. It simply gives the existing account access to this new product.
So when the user logs in, they will see that they now have access to TWO products, with each product and the available URL's listed separately.
Note: If you're going to be using Paypal to process payments, then you don't need to set up the Email Processing info in your DAP Admin > Config > Payment Processing screen. You don't need to set up the DAP Email Order cron job either.