![]() |
|
|||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
|
Affiliate software integrationSelect your shopping cart or card processor for instructions on how to integrate. If you find that any of our guides may be out of date then please contact us. Credit Card ProcessorsPayPal.com Shopping CartsActinic
Ecommerce PayPal
Method 1 Shopping cart/Sales links Make
sure this code is in one line and not split among several and that it
is within the <Form> tag along with the other hidden fields. Also
be sure the virtual includes are pointing to the correct files on your
server. If you have standard hyperlinks rather than HTML form buttons
then add
the following code to the end of the link:- &custom=<!--#include virtual="/cgi-bin/affiliate/passinclude.cgi" --> This uses Server Side Includes (SSI) so depending on whether your server checks for SSI automatically, you may need to rename the pages to .shtml or update your .htaccess file (apache) so that normal .htm or .html pages are parsed for SSI. Check the adding SSI to Apache with .htaccess guide if you are running apache and the SSI tags aren't being parsed. Then
from within the PayPal member area setup your Instant Payment Notification
(IPN) to use the post back script. If you are already using IPN then you'll
need to contact us to find a solution:- Make sure you enter the correct path to the script for your installation and swap ENCPASS for the ENC password from your installation of AllAffiliatePro or AffiliateClick. This password must be correct for the tracking to work correctly. 2CheckOut.com
Method 1 http://www.yourdomain.com/cgi-bin/affiliate/clickme2.cgi?id=$a_order&amount=$a_total&enc=ENCPASS (AffiliateClick) http://www.yourdomain.com/cgi-bin/affiliate/affiliate2.cgi?id=$a_order&amount=$a_total&enc=ENCPASS Make sure you enter the correct path to the script for your installation and swap ENCPASS for the ENC password from your installation of AllAffiliatePro or AffiliateClick. This password must be correct for the tracking to work correctly. We
recommend you use and configure click & click2.cgi and call securely.
Make sure you read the brief explaination of why some tracking needs to
be on a secure server, and it's implications.
So the code would be:- WorldPay
Method 1Worldpay
allows you to configure your own version of the order complete page. This
page is called resultsY.html, create this page (if you haven't already,
there is a guide on the worldpay site) and add the following html <img>
tag to the page:- (AffiliateClick) <img src="http://www.yourdomain.com/cgi-bin/affilate/affiliate2.cgi?id=<WPDISPLAY ITEM=transId>&amount=<WPDISPLAY ITEM=authAmount>&enc=ENCPASS" height=1 width=1 border=0> Make sure you enter the correct path to the script for your installation and swap ENCPASS for the ENC password from your installation of AllAffiliatePro or AffiliateClick. This password must be correct for the tracking to work correctly. We
recommend you use and configure click & click2.cgi and call securely.
Make sure you read the brief explaination of why some tracking needs to
be on a secure server, and it's implications.
So the code would be:- Method
2 http://www.yourdomain.com/cgi-bin/affiliate/postback.cgi?type=worldpay&enc=ENCPASS(AffiliateClick) http://www.yourdomain.com/cgi-bin/affiliate/affiliate2.cgi?type=worldpay&enc=ENCPASS Then select
'callback enabled'. IBill
IBill allows you to configure your own version of the order complete page
for each subscription you have available. Look through their documentation
to see how to do this. Make your own version of this page and add to it
the following code:- Make sure you enter the correct path to the script for your installation and swap ENCPASS for the ENC password from your installation of AllAffiliatePro or AffiliateClick. This password must be correct for the tracking to work correctly. We
recommend you use and configure click & click2.cgi and call securely.
Make sure you read the brief explaination of why some tracking needs to
be on a secure server, and it's implications.
So the code would be:- CCBill
Login to the CCBill admin panel (AffiliateClick) http://www.yourdomain.com/cgi-bin/affiliate/affiliate2.cgi?type=ccbill&enc=ENCPASS Make sure you enter the correct path to the script for your installation and swap ENCPASS for the ENC password from your installation of AllAffiliatePro or AffiliateClick. This password must be correct for the tracking to work correctly. Update
your CCBill payment links or buttons to include the affiliate pass through:- <input type="hidden" name="referer" value="<!--#include virtual="/cgi-bin/affiliate/passinclude.cgi" -->"> Make
sure this code is in one line and not split among several and that it
is within the <Form> tag along with the other hidden fields. Also
be sure the virtual includes are pointing to the correct files on your
server. If you have standard hyperlinks rather than HTML form buttons
then add
the following code to the end of the link:- &referer=<!--#include virtual="/cgi-bin/affiliate/passinclude.cgi" --> This uses Server Side Includes (SSI) so depending on whether your server checks for SSI automatically, you may need to rename the pages to .shtml or update your .htaccess file (apache) so that normal .htm or .html pages are parsed for SSI. Check the adding SSI to Apache with .htaccess guide if you are running apache and the SSI tags aren't being parsed. CCNow CCNow will
only let the affiliate order tracking script be called along a secure
server.
Make sure you read the brief explaination of why some tracking needs to
be on a secure server, and it's implications.
So the code to enter into the 3rd party affiliate programs box would be:- ClickBankThis method involves logging in to your ClickBank account and changing your return pages for each sales link number to a cgi script called thankyou.cgi. In the case of ClickBank thankyou.cgi is also able to grab the order ID number. Scroll down to the section called Thankyou.cgi for more information. Authorize.net
Method 1 <input type=hidden name="x_Receipt_Link_Method" value="POST"> <input type=hidden name="x_Receipt_Link_Text" value="You must click here to Complete the Transaction"> <input type=hidden name="x_Receipt_Link_URL" value="http://www.yourdomain.com/cgi-bin/affiliate/thankyou.cgi"> Method
2 http://www.yourdomain.com/cgi-bin/affiliate/postback.cgi?type=authorize&enc=ENCPASS (AffiliateClick) http://www.yourdomain.com/cgi-bin/affiliate/affiliate2.cgi?type=authorize&enc=ENCPASS Make
sure you enter the correct path to the script for your installation and
swap ENCPASS for the ENC password from your installation
of AllAffiliatePro or AffiliateClick. This password must be correct for
the tracking to work correctly. <input type="hidden" name="x_Pass_Through" value="<!--#include virtual="/cgi-bin/affiliate/passinclude.cgi" -->"> Make sure this code is in one line and not split among several and that it is within the <Form> tag along with the other hidden fields. Also be sure the virtual includes are pointing to the correct files on your server. VerisignThis method involves logging in to your Verisign account, entering "FORM CONFIGURATION" and setting your return URL method to "Return POST" and changing the return URL to "http://www.yourdomain.com/cgi-bin/affiliate/thankyou.cgi". Scroll down to the section called Thankyou.cgi for more information. Plug'n'PayThis method involves updating your payment buttons so that the return page is set to thankyou.cgi:- <input type="hidden" name="success-link" value="http://www.yourdomain.com/cgi-bin/affiliate/thankyou.cgi"> Scroll down to the section called Thankyou.cgi for more information Thankyou.cgiThankyou.cgi is a script designed to allow our affiliate software to integrate with Card Processors that do not allow you to display any of the order information (i.e. order id and amount) on your 'Order Complete' or 'receipt' pages. Such card processors usually provide a link off the receipt page that returns a customer to a page in your site. They usually post a few pieces of order data along with that return. If you have already made your own order complete page then thankyou.cgi will utilise it, if you haven't then please create one now.
Step 1. (AffiliateClick) <img src="http://www.yourdomain.com/cgi-bin/affilate/affiliate2.cgi?id=::id::&amount=::amount::&enc=ENCPASS" height=1 width=1 border=0> Substituting
the URL to AllAffiliatePro on your server.
Make sure you enter the correct path to the script for your installation
and swap ENCPASS for the ENC password from your installation
of AllAffiliatePro or AffiliateClick. This password must be correct for
the tracking to work correctly. Step
2.
Step 3. http://www.yourdomain.com/cgi-bin/affiliate/thankyou.cgi You
can also force the order amount by adding ?amount=XX:- Adding SSI to Apache with .htaccessWith Apache you can
choose to have normal .htm or .html files parsed for SSI. You can do this
by editing your .htaccess file. If you don't have a .htaccess file then
you can create one by saving a simple text file as ".htaccess"
(you'll need to use the parenthasis " when saving the filename to ge
the correct name .htaccess). AddType text/x-server-parsed-html .htm .html .shtm .shtmlIf you are running Apache version 2.x add the line:- AddOutputFilter INCLUDES .htm .html General Guide
The general rule for integrating is to modify your order complete page.
Most Card Processors allow you to do this, and most will allow you to
display certain information from the order. The information we are interested
in is the order ID and the order amount. You need to edit your order complete
page so that it contains:- <img src="http://www.yourdomain.com/cgi-bin/affilate/clickme2.cgi?id=::id::&amount=::amount::&enc=ENCPASS" height=1 width=1 border=0> (AffiliateClick) <img src="http://www.yourdomain.com/cgi-bin/affilate/affiliate2.cgi?id=::id::&amount=::amount::&enc=ENCPASS" height=1 width=1 border=0> You
need to swap ::id:: and ::amount:: for the symbols your card processor uses,
these can be anything such as $a_order
or <WPDISPLAY ITEM=transId>.Usually
you will need to call from a secure server to prevent a 'Page contains non
secure items' error. Do this using click and click2.cgi, and the code:- Secure Server requirementSometimes for the tracking to be accurate it needs to be on a secure server. So that you don't need to buy an SSL certificate for each domain you have the affiliate software installed upon we have provided 2 scripts called click.cgi and click2.cgi. These 2 scripts alone, alnong with cosmic.pm site on your secure server (such as a shared secure server). This allows the cookie to be set and retrieved through a secure connection. If you have the tracking 1x1 img tag pointing to a non secure http:// connection, and it's on a secure https:// page (such as your card processors receipt page) then the browser will popup a "Page contains insecure items error". In this event if the visitor selects not to display all items the tracking is lost. That's why you need to setup the secure click.cgi and click2.cgi scripts to prevent the browser error from appearing in some integration situations. Furthermore the secure server must also have a p3p.xml file setup in the domain.com/w3c folder so that IE6 allows the cookies to be set properly. If you are having troubles finding a suitable secure server to upload click.cgi and click2.cgi then we can provide you one from cosmicsecure.com. Integrating AllAffiliatePro with Actinic is pretty simple. A guide is included below. If you have any troubles then please contact support and they will assist you. Actinic EcommerceMethod
1 (AffiliateClick) <IMG SRC="https://www.server.com/cgi-bin/affiliate/affiliate2.cgi?amount=NETQUOTEVAR:FORMATTEDORDERTOTALCGI&id=NETQUOTEVAR:THEORDERNUMBER&enc=ENCPASS" height=1 width=1 border=0> Replacing
www.server.com/cgi-bin/affiliate
with your domain name, and the location of AllAffiliatePro on your server.
Be sure the tag is all on the same line. We suggest placing this line
just above the submit button:- Method
2 osCommerce
Add the following code to checkout_process.php above the line:- //////////////////////////////// $OrderTotal = $currencies->format($cart->show_total()
- $total_tax); //////////////////////// Add the following code within the HTML part of checkout_success.php (such as below the line <h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3>) <!-- AllAffiliatePro Integration --> <img src="http://www.YOURDOMAIN.com/cgi-bin/affiliate/clickme2.cgi?id=<?php
echo $OrderID; ?>&amount=<?php echo $OrderTotal; ?>"
height=1 width=1 border=0> <!-- AllAffiliatePro End --> aMemberPro For recurring
billing integration you must modify and edit the following files:- Edit plugins\payment\paypal_r\ipn.php $custom_var = $vars['custom']; $pathtoclick2 = "http://www.YOURDOMAIN.com/cgi-bin/clickme2.cgi?want=click2"; //////////////////////// AllAffiliatePro tracking change Be sure you swap BOTH occurances of YOURDOMAIN with your actual domain name. Is your Card Processor or shopping cart not in the list?Please do as best you can to figure out a way of integration. If you do discover a method please post the solution on the BBS below. If you really can't figure out a solution then you can post a request below and it may or may not be answered. For AllAffiliatePro integration can be purchased at $49 where upon a member of staff will do the integration for you. Visit the Affiliate software integration bbs
|
|||||||||||||||||||||||||||||||||||||||||
| Copyright © 1999 - 2008 Cosmic Networks Ltd All rights reserved. | ||||||||||||||||||||||||||||||||||||||||||