Paid Memberships Pro Affiliate Program: Integration Guide | AffiliateBase

Create an Affiliate Program with Paid Memberships Pro

Step-by-step guide to integrating affiliate tracking with your Paid Memberships Pro site

Paid Memberships Pro is a powerful WordPress membership plugin that helps you create and manage membership sites, online courses, and subscription businesses. If you're using Paid Memberships Pro and want to grow through affiliate marketing, AffiliateBase provides seamless integration.

This comprehensive guide will walk you through everything you need to know about setting up an affiliate program with Paid Memberships Pro, from plugin installation to tracking membership sign-ups, renewals, and subscription changes.

Whether you're selling premium content, online courses, or subscription memberships, an affiliate program can help you acquire new members while rewarding your partners for successful referrals.

Follow these steps to integrate AffiliateBase with Paid Memberships Pro:

1

Install AffiliateBase WordPress Plugin

Install and activate the AffiliateBase plugin in your WordPress admin dashboard. The plugin includes built-in Paid Memberships Pro integration.
2

Connect Your AffiliateBase Account

Navigate to Settings > AffiliateBase in WordPress and enter your API key from your AffiliateBase dashboard.
3

Enable Paid Memberships Pro Integration

In the AffiliateBase plugin settings, enable the Paid Memberships Pro integration toggle. This will automatically track PMP transactions.
4

Configure Payment Gateway Webhooks

If using Stripe or PayPal with Paid Memberships Pro, ensure your payment gateway webhooks are configured to send events to AffiliateBase for accurate tracking.
5

Set Up Commission Rules

Configure your commission structure in AffiliateBase dashboard. You can set different commission rates for different membership levels.
6

Test the Integration

Create a test membership purchase through Paid Memberships Pro to verify that affiliate tracking is working correctly.

Custom Paid Memberships Pro Integration Example

If you prefer a custom integration, here's how to track Paid Memberships Pro transactions:

<?php
// Add to your theme's functions.php or custom plugin
// Track Paid Memberships Pro membership sign-ups
add_action('pmpro_after_checkout', 'affiliatebase_track_pmp_signup', 10, 2);

function affiliatebase_track_pmp_signup($user_id, $morder) {
    // Get affiliate ID from cookie or URL parameter
    $affiliate_id = isset($_COOKIE['affiliate_id']) ? $_COOKIE['affiliate_id'] : null;
    
    if ($affiliate_id && $morder->status === 'success') {
        $api_key = get_option('affiliatebase_api_key');
        $membership_level = pmpro_getMembershipLevelForUser($user_id);
        
        wp_remote_post('https://api.affiliatebase.com/track-conversion', [
            'headers' => [
                'Content-Type' => 'application/json',
                'Authorization' => 'Bearer ' . $api_key,
            ],
            'body' => json_encode([
                'affiliateId' => $affiliate_id,
                'type' => 'membership_signup',
                'amount' => $morder->total,
                'currency' => $morder->currency,
                'customerId' => $user_id,
                'subscriptionId' => $morder->subscription_transaction_id,
                'metadata' => [
                    'membership_level_id' => $membership_level->id,
                    'membership_level_name' => $membership_level->name,
                    'order_id' => $morder->id,
                ],
            ]),
        ]);
    }
}

// Track subscription renewals
add_action('pmpro_subscription_payment_completed', 'affiliatebase_track_pmp_renewal', 10, 2);

function affiliatebase_track_pmp_renewal($subscription, $order) {
    // Get original affiliate from subscription metadata
    $affiliate_id = get_user_meta($subscription->user_id, 'affiliatebase_affiliate_id', true);
    
    if ($affiliate_id && $order->status === 'success') {
        // Track renewal conversion
        // Similar code as above but with type: 'membership_renewal'
    }
}

Why Use AffiliateBase with Paid Memberships Pro?

AffiliateBase is the perfect solution for Paid Memberships Pro site owners who want powerful affiliate tracking.

Native PMP Integration

Built-in integration with Paid Memberships Pro hooks and events. Automatically tracks membership sign-ups, renewals, and subscription changes.

Multiple Payment Gateway Support

Works with Stripe, PayPal, and other payment gateways supported by Paid Memberships Pro. Tracks both one-time and recurring payments.

Subscription Lifecycle Tracking

Tracks subscription renewals, upgrades, downgrades, and cancellations. Ensures affiliates receive commissions for recurring revenue.

Multiple Membership Levels

Support for different commission rates based on membership tiers. Perfect for sites with multiple membership levels.

WordPress Plugin

Easy-to-use WordPress plugin with Paid Memberships Pro integration built-in. No coding required for basic setup.

Affiliate Dashboard

Give your affiliates a professional dashboard to track their performance, view commissions, and generate affiliate links.

Frequently Asked Questions

Does AffiliateBase work with Paid Memberships Pro?

Yes! AffiliateBase has native integration with Paid Memberships Pro through our WordPress plugin. It automatically tracks membership sign-ups, renewals, and subscription changes.

How are subscription renewals tracked?

AffiliateBase tracks Paid Memberships Pro subscription renewals automatically. When a member's subscription renews, the original affiliate receives commission for the renewal, ensuring they're rewarded for recurring revenue.

Does it work with Stripe and PayPal?

Yes! AffiliateBase integrates with all payment gateways supported by Paid Memberships Pro, including Stripe, PayPal, and others. It tracks both one-time payments and recurring subscriptions.

Can I set different commission rates for different membership levels?

Yes! You can configure different commission structures in AffiliateBase based on membership level or any other criteria. This gives you full control over your affiliate program.

Do I need to modify my Paid Memberships Pro checkout?

No, the integration works automatically with Paid Memberships Pro's standard checkout flow. AffiliateBase captures affiliate IDs from cookies or URL parameters and tracks conversions when transactions complete.

What happens when a member upgrades or downgrades?

AffiliateBase tracks membership changes and adjusts commissions accordingly. The original affiliate maintains attribution, and commissions are calculated based on the new membership level.

Ready to Launch Your Paid Memberships Pro Affiliate Program?

Get started with AffiliateBase today and start growing your membership site through affiliate marketing.