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 PAP 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. 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 "||".
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 PAP cookie and then you need to assign this value to the option field with number you've chosen in the previous step:
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.
3
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...
XML response from eWAY server should be stored in variable $xmlResponse
Now all is set, you are ready to start tracking.