A secure online payment gateway that makes it easy and hassle free for you to accept credit card payments through your website.
Integrates eWAY Merchant Hosted Payment (XML).To integrate with eWAY, you need eWAY plugin which is distributed with PAP by default.
Note! If you are using Shared Payment Solution, use eWAY integration method for Shared Payment Solution.
Activate and configure your eWAY plugin
First, you have to activate the eWAY plugin. Login to your merchant panel and navigate to menu Start > Plugins. Click the “Activate” button for eWAY plugin and when it is active, click the Configure button for the eWAY plugin. Here you have to set the Custom field number. This is the number of the field you will use for custom cookie on your pages. As the Response type select XML.
Note! If you are using custom field with selected number for transferring some data (other than pap custom cookie), please setup the Custom value separator as well. For example you can use string “||”.
Add tracking code to your page
Now, you have to put the tracking code to your button form. If you are using some e.g PHP script for processing payments, first you have to fill a custom value with the PAP cookie and then you need to assign this value to the option field with number you’ve chosen in the previous step:
$cookieVal = $_COOKIE['PAPVisitorId']; $optionField1 = $cookieVal;
For PAP versions below 4.3 the cookie name is PAPCookie_Sale.
Note! If you are using option field to transmit some data other than PAP cookie, don’t forget to insert the separator between your data and PAP cookie.
$optionField1 .= ‘||’ . $cookieVal;
String “||” have to equal the separator you’ve configured in previous step.
Tracking code – processing
Last step is to set the data to be sent also to your PAP. If you are using PHP script to process the responses from eWAY after your payments, insert this code into the begin of the function which processes the responses, or to the beginning of the file.
/* PAP integration */ $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://URL_TO_PostAffiliatePro/plugins/Eway/eway.php"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xmlResponse); curl_exec($ch); /* end of PAP integration */
XML response from eWAY server should be stored in variable $xmlResponse
Now all is set, you are ready to start tracking.
- eWAY (using Shared Payment Solution) | Post Affiliate Pro
- 2Checkout INS integration | Post Affiliate Pro
- Paysite Cash | Post Affiliate Pro
- PaySimple | Post Affiliate Pro
- E-junkie | Post Affiliate Pro
- Wordpress ecommerce Plugin | Post Affiliate Pro
- Ecwid | Post Affiliate Pro
- Integration | Post Affiliate Pro