Entries Tagged 'Setup' ↓

Your Sales Page and Payment Processing

DAP Currently works with Paypal, ClickBank and 1Shoppingcart (and its private labels).

So here’s how your sales process works:
1. Go to DAP admin control panel, go to “Config” screen and set up the “Payment Integration” drop down like shown here. Basically all you are actually doing is to tell DAP where your payment notification emails come in (you tell DAP what that email address is, and provide it with the password).

2. Set up your sales page as you would normally do, when accepting payment through Paypal, ClickBank or 1Shoppingcart. The only thing you need to make sure is to use the exact same “Product Name’ in both your buy button as well as within DAP.

So, if you set up a product called “My Membership Site” within DAP, then use the same name “My Membership Site” in your shopping cart too (or Paypal buy button), as the product name.
3. During installation, a Cron job has already been set up to run the “Payment Processing Job” to run every 10 minutes. So, every 10 minutes, DAP will automatically check the “payment email address” that you specified in your “Config” (step 1) and if there is a payment for a product name that matches the product name in DAP, then it will automatically add that customer to DAP as a member.

That’s it!

NOTE: If you ever change the name of your product in your shopping cart or on your web site, make sure to change the product name to the new one within DAP also.

- Ravi Jayagopal

ClickBank Integration

DAP supports ClickBank purchases.

Just point DAP to the email address where you get your ClickBank notification emails.

Configure what your billing email address is, in the “Config” screen (in admin section), where you can put in your billing email address, smtp server name and password.

Try out some test purchases first.

For instance, take an existing CB notification email, change name and email (to your own name and email id), and then send it out by email to your billing email address (as if you are ClickBank, notifying the billing email of the purchase).

Then, assuming you have set up the cron jobs, within about 10 minutes, you should see processing the order correctly and create the username/password for that customer (which is really you).

If it works, you can launch and go live!

If not, enter a support ticket at DigitalAccessPass.com/support/.

Setting Up Cron Jobs

There are two cron jobs you need to set up.

1. dap-cron.php: Should be set up to run once every hour. This script sends out all the scheduled bulk emails and processes the different type of “bulk” actions. Don’t worry about what those actions are. This just needs to run once every hour.

2. dap-emailorder.php: Should be set up to run once every 10 minutes. This is the cron script that processes all of your orders from your customers. DAP does almost all email processing. So, if you set this up to run once every 10 minutes, then every 10 minutes, it will log in to your billing email address (you can configure what this email id is within the admin control panel on the “Config” screen) and process the email notifications that you have received from Paypal, ClickBank or 1ShoppingCart (and its private labels).

There are two things you need to figure out:

a) The path to PHP on your host: They usually have this somewhere in your web site control panel. If not, just ask them or read their wiki.

For eg., on Dreamhost.com, it looks like this:
/usr/local/host/cgi-system/php5.cgi

b) You need your local path on your server to your root folder. For this, simply visit the following url:

http://www.Example.com/dap/getpath.php

This will spit out something like this:

/home/.xyz/yoursite/yoursite.com/dap

For the first cron, add the text “/dap-cron.php” to this path.

For the second cron, add the text “/dap-emailorder.php” to this path.

So, the full text to put in where it asks for the “Command to run” is this:

Cron 1:
/usr/local/host/cgi-system/php5.cgi<insert space>/home/.xyz/yoursite/yoursite.com/dap/dap-cron.php

Cron 2:
/usr/local/host/cgi-system/php5.cgi<insert space>/home/.xyz/yoursite/yoursite.com/dap/dap-emailorder.php

Where you see the text <insert space>, replace with an actual space (hitting the space bar).

Set Cron 1 to run hourly, and Cron 2 to run every 10 minutes.

That’s it!

Protecting Regular Site Files

1. Go to following directory within the “dap” folder on your desktop:

dap > client > website
2. Copy the file .htaccess from this folder into the root directory of your web site. [Root directory is where your home page (say, index.html) is].

Customizing Header and Footer

To change the header and footer that your users will see, modify the following files:

dap > templates > content > header.php
dap > templates > content > footer.php

To change the header and footer of the admin panel, modify the following files:

dap > admin > header_admin.php
dap > admin > footer_admin.php

DAP WordPress Integration: WP In Root

If WordPress is in a sub-folder, follow this other post.

If WordPress itself is your home page, then continue reading for installation…

1. WordPress is installed in root under main domain.
Ex: http://www.Example.com/ itself is your blog.

2. Go to following directory within the “dap” folder on your desktop:

dap > client > wordpress

3. Open the .htaccess file in this directory. Modify the 3rd line that looks like this:

RewriteBase /wordpress/

Replace the text /wordpress/ above, with the text /wordpress/ .
So, you are basically deleting the text “wordpress” and the trailing slash (”/”).

So, Line 3 before:
RewriteBase /wordpress/

Line 3 After:
RewriteBase /

4. Copy both this .htaccess and dapwpclient.php files from the same folder into the root directory of your web site.

5. Access your blog at:
http://www.Example.com/

- End of installation -

DAP WordPress Integration: WP In A Sub-folder

1.  WordPress is installed in a subdirectory under main domain.
Ex: http://www.Example.com/blog/

2.  Go to following directory within the “dap” folder on your desktop:

dap > client > wordpress

3. Open the .htaccess file in this directory. Modify the 3rd line that looks like this:

RewriteBase /wordpress/

Replace the text wordpress above, with the actual folder name of your WordPress installation. So if you installed wordpress into a folder named “blog”, then the above line becomes:

RewriteBase /blog/

4. Copy both this .htaccess and dapwpclient.php files from the same folder into the root of your wordpress directory (blog).

5. Access your blog at:
http://www.Example.com/blog/

- End of installation -