Language switcher

#languages]

–Hidden comment

Use attributes in format region_from and region_to= to change the languages showing in language switcher.
Available regions are:
europe_from europe_to
asia_from asia_to
mideast_from mideast_to
america_from america_to

Example:
europe_from=0 europe_to=22 will put all languages (ordered in language switcher settings) from 1 to 21 to Europe region:
asia_from=22 asia_to=25 will put all languages from 23 to 24 (so only 2) into Asia region.

Integrations

Maximize the value of your existing affiliate marketing software and extend its possibilities with a wide range of integrations, plugins and apps. All built to improve the strong foundations of Post Affiliate Pro.

eWay Rapid API

A secure online payment gateway that makes it easy and hassle free for you to accept credit card payments through your website.

Rapid API is a payment product that allows merchants to post credit card data from their customer’s browser directly to eWAY without it passing through the merchant’s server.

The integration method uses API and its custom field Option1 (or Option2 or Option3)

Please follow the integration steps only in case you are sending your customer to a different domain – e.g. asking for credit cart details at domainA.com and redirecting them to domainB.com with a payment result message. Otherwise you can simply use the general solution.

Integration of custom field

The first step is to set custom field Option1 (or the other two in case you already use Option1). To get the needed value, you can use at least two ways – using PHP you can read it from $_COOKIE[‘{$PapAbbr}VisitorId’] or you can use JavaScript method PostAffTracker.writeCookieToCustomField() found in scripts/salejs.php. In this case you have to remember that it is a JavaScript method, so you have to get the value before sending request to eWay.

Reading response

The second step is to add the sale tracking code to the site defined as RedirectUrl. eWay will send all data there, so you have to process the response there and then use response data in the sale tracker.

PHP example here:

...
$result = $result->GetAccessCodeResultResult;
?>

{$TrackingScript}
<script type="text/javascript">
	{$SetAccountJs}
	PostAffTracker.setVisitorId('<?php echo $result->Option1; ?>');
	var sale = PostAffTracker.createSale();
	sale.setTotalCost('<?php echo $result->TotalAmount; ?>');
	sale.setOrderID('<?php echo $result->InvoiceNumber; ?>');
	PostAffTracker.register();
</script>

Rapid 3.0 API

In case you are using new Rapid 3.0 verison, you can follow the same steps above, however if you want to get the Option value from response, you have to use this code:

$result->Options->Option[0]->Value

In case you are using Option2 or Option3, the number in above line has to change. The number is defined as N-1.

This means, for Option1 it is 0, for Option2 it’s 1 and for Option 3 it’s 2. Do not forget to integrate your website with the click tracking code.

Back to Integrations Create account for FREE

Our website uses cookies. By continuing we assume your permission to deploy cookies as detailed in our privacy and cookies policy.

×

Schedule a one-on-one call and discover how Post Affiliate Pro can benefit your business.

We’re available on multiple dates

Schedule a call