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.

Dwolla

Secure, ready-to-use payment tool that simplify how you send or receive money from anyone in the U.S.

Say goodbye to plastic cards, ATM fees, hidden charges and fine print. Dwolla empowers anyone with an internet connection to safely send money to friends or businesses.

The integration with Dwolla is similar to integration with PayPal (using callback URL). There are two main ways of using Dwolla – payment buttons and off-site gateway.

Payment buttons

Integration with payment buttons is really easy. The only need is to enable and use ‘data-redirect’ parameter. When creating a button, there is an option to set a Redirect URL. Use it to redirect customers to a PHP thank you page. As we will need to process transactions details, it must be PHP (or ASP) based.

When your thank you page is ready, place this code to it, to a part which handles output code (HTML):

{$TrackingScript}
<script type="text/javascript">
{$SetAccountJs}
var sale = PostAffTracker.createSale();
sale.setTotalCost('<?php $_REQUEST['amount']; ?>');
sale.setOrderID('<?php $_REQUEST['transaction']; ?>');
sale.setProductID('<?php $_REQUEST['orderId']; ?>');
sale.setData1('<?php $_REQUEST['checkoutId']; ?>');
PostAffTracker.register();
</script>

This is all. Save your changes and your site is integrated now.

Off-site gateway

In this case, you can rely on redirect URL again, with the same params. If you do not want to rely on it you can use ‘callback’ parameter.

There are two steps to be taken. The first one is to activate the Dwolla plugin in your Post Affiliate Pro merchant panel.

The second step is to add this code to your Off-site payment form:

<input id="callback" name="callback" type="hidden" value="//{$PluginsUrl}Dwolla/dwolla.php" />

{$TrackingScript}
<script type="text/javascript">
PostAffTracker.writeCookieToCustomField('callback', '', 'pap_custom');
</script>

The code goes directly to the payment form code. As you can see the callback field contains an URL pointing to your Dwolla plugin within Post Affiliate Pro. In case you already use ‘callback‘ field to point to a different URL, continue to the next step.

Off-site gateway with callback URL already used

In case your callback URL is already used for a third party application, you can use the same code from the previous step, just do not use the callback field, simply keep the original one.

To make it communicate with Post Affiliate Pro you will have to add this code to your custom callback script:

/* {$PapFullname} integration snippet */
$ch = curl_init();
$input = file_get_contents('php://input');
curl_setopt($ch, CURLOPT_URL, "http://{$PluginsUrl}Dwolla/dwolla.php?pap_custom=".$_GET['pap_custom']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $input);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json','Content-Length: '.strlen($input)));
curl_exec($ch);
/* /{$PapFullname} integration snippet */

This code will simply resend all the received data from Dwolla to your Post Affiliate Pro plugin for Dwolla. Make sure it is active.

Do not forget to integrate your website with the click tracking code to make it all working.

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