Home Integration Methods eWAY (using Merchant Hosted Payments)

eWAY (using Merchant Hosted Payments)

Integrates eWAY Merchant Hosted Payment (XML).

To integrate with eWAY, you need eWAY plugin which is distributed with PAP4 by default.

Note! If you are using Shared Payment Solution, use eWAY integration method for Shared Payment Solution.
1
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. Here you have to click the "Activate" button for eWAY plugin.

Right after you activate the eWAY plugin, you need to set it up. Login to your merchant panel and navigate to menu Start> Plugins. Now 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 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 "||".
2
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 PAP4 cookie and then you need to assign this value to the option field with number you've chosen in the previous step:
For PAP4 versions below 4.3 the cookie name is PAP4Cookie_Sale.

Note! If you are using option field to transmit some data other than PAP4 cookie, don't forget to insert the separator between your data and PAP4 cookie.

$optionField1 .= '||' . $cookieVal;

String "||" have to equal the separator you've configured in previous step.
3
Tracking code - processing
Last step is to set the data to be sent also to your PAP4. 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...
XML response from eWAY server should be stored in variable $xmlResponse
Now all is set, you are ready to start tracking.