ReCharge integration allows you to track your recurring payments from your Shopify store. The integration consists of adding a tracking code to thank you page, creating an API token and setting up a plugin in your Post Affiliate Pro.

To track recurring payments you either need Recurring Commissions feature or Lifetime Commissions plugin activated!

1.

Edit your thank you page

Log in to your Shopify admin panel and go to Apps section and click on ReCharge Recurring Billing & Subscriptions app so you get to ReCharge panel.
Once there click the wrench icon in upper right corner and go to Checkout.
Scroll down to Thank you page section and paste the following code under Additional & scripts and trackers:

<script id="pap_x2s6df8d" src="http://URL_TO_PostAffiliatePro/scripts/trackjs.js" type="text/javascript"></script>
<script type="text/javascript">
PostAffTracker.setAccountId('Account_ID');
var discountMultiplier = 1 - {{total_discounts}} / ({{subtotal_price}} + {{total_discounts}});
{% for item in line_items %}
var itemPrice = {{item.price}} * {{item.quantity}};
  var sale{{ forloop.index }} = PostAffTracker.createSale();
  sale{{ forloop.index }}.setTotalCost(itemPrice * discountMultiplier);
  var shippingFrequency = '{{item.properties.shipping_interval_frequency}}';
  if (shippingFrequency  != '') {
    sale{{ forloop.index }}.setOrderID('{{item.subscription_id}}');
  } else {
    sale{{ forloop.index }}.setOrderID('{{id}}({{ forloop.index }})');
  }
  sale{{ forloop.index }}.setProductID('{{item.product_id}}');
  sale{{ forloop.index }}.setCoupon('{{discount_code}}');
{% endfor %}
PostAffTracker.register();
</script>

If you wish to save customer name or email you can add the following lines under the sale{{ forloop.index }}.setCoupon('{{discount_code}}');:

  sale{{ forloop.index }}.setData1('{{email}}');
  sale{{ forloop.index }}.setData2('{{first_name}} {{last_name}}');

You can find more variables in ReCharge knowledgebase.

2.

Create API token

As a first step you'll need to contact Recharge at support@rechargeapps.com to request access to API. See https://support.rechargepayments.com/article/551-generate-an-api-token for more details.

Once you are granted the access you can create your API token. To do so log in to your Shopify admin panel and go to Apps section and click on ReCharge Recurring Billing & Subscriptions app so you get to ReCharge panel.
Once there click the Integrations at the top and API tokens... on the right edge of the page, afterwards click Create an API token.
Name the token, add an email where you will be notified if the webhook should be failing and most importantly make sure you add Read and Write access to Webhooks and Read access access to Orders.
Save the token and copy its API key which you will need to use in the ReCharge webhook handling plugin which you can find in your Post Affiliate Pro merchant panel under Configuration->Plugins