Constant Contact Integration for MemberPress

Documentation

Introduction

Constant Contact Integration for MemberPress automatically syncs your MemberPress members to Constant Contact lists when they sign up, renew, or have their membership expire — through the official OAuth2-secured Constant Contact v3 API.

Map a Constant Contact list to each membership event and the plugin keeps everything in sync in real time. Members move cleanly between lists as their state changes, so the right people always receive the right campaigns — no CSV exports and no manual cleanup.

A nightly safety-net job double-checks for any expired members that real-time hooks may have missed, and every credential is encrypted.

Features

  • OAuth2 Authorization Code flow with automatic access-token refresh
  • Three event slots: New Member Signup, Membership Expired, Reactivated / Renewed
  • Members migrate cleanly between lists — no double-listing, no orphans
  • Nightly safety-net cron at 12:05 AM (site timezone)
  • Detects admin-triggered status changes (Transactions list, Edit Transaction, bulk edit)
  • SSL verification enforced on all outbound API requests
  • Translation Ready
  • Lightweight, Fast & Powerful
  • Clean uninstall — removes all options and transients

Requirements

Note: the OpenSSL extension is required so the plugin can encrypt your Constant Contact credentials. If it is not available, the plugin will refuse to activate and show an admin notice.

Installation of Plugin

  • The installation of the plugin is just like any other plugin installation for WordPress. Login to your WordPress site and go to Plugins > Add New.
  • At the Install Plugins Page click on Upload from the top navigation and then click on browse.
  • Go to the location on your computer where you saved the downloaded plugin zip file and upload this zipped file. You need to unzip the downloaded file first to get the plugin zip file.
  • Now click on Install Now.
  • Wait until WordPress has uploaded the file. If it's done click on Activate Plugin.
  • Now you should see a message 'Plugin activated' at the top of the window.
  • Navigate to MemberPress > Constant Contact in the WordPress admin to open the settings page.

Setup & Configuration

Step 1 – Create a Constant Contact Application

Go to developer.constantcontact.com and sign in, or create a free developer account.

Under My Applications, click New Application, give it a name (for example "My WordPress Site"), and click Save.

Copy the API Key (Client ID). Then click Generate Client Secret and copy the secret — it is only shown once.

Add a Redirect URI: copy the exact value shown on the plugin's settings page (it looks like https://yoursite.com/wp-admin/admin-post.php?action=mp_cc_oauth_callback).

Constant Contact developer application

Step 2 – Save Credentials

Paste the Client ID and Client Secret into the plugin's settings page and click Save Credentials. Your secret is stored encrypted in the database.

Save Constant Contact credentials

Step 3 – Connect & Authorise Access

Click Connect to Constant Contact. Log in to Constant Contact and grant access.

You will be redirected back to the settings page with a green "Connected" confirmation.

Connection status

Step 4 – Map Contact Lists

Once connected, three dropdowns appear. Select the Constant Contact list to use for each MemberPress event:

  • New Member Signup – the member is added when they register and their payment is accepted.
  • Membership Expired – the member is moved here when a membership expires or a subscription is cancelled.
  • Reactivated / Renewed – the member is moved here when an expired membership is renewed or a cancelled subscription is reactivated.

Click Save List Mappings. Use the Refresh lists link any time you add new lists in Constant Contact.

Contact list mapping

Debug Settings

If you ever need to troubleshoot the sync, open the Debug Settings card on the settings page and tick Enable debug log.

Logs are written to wp-content/uploads/mp-cc-logs/ in dated files (one per day).

Leave this option off during normal operation.

Debug settings

How Syncing Works

Real-time sync

The plugin listens to MemberPress events and updates Constant Contact within seconds of a signup, renewal, cancellation, or expiry. It also detects status changes you make manually from the MemberPress Transactions screen.

Automatic token refresh

Access tokens are refreshed automatically when they expire. The plugin stores the token expiry time and requests a fresh token using the saved refresh token before making any API call, so the connection never silently breaks.

Nightly safety net

A WP-Cron job runs every night at 12:05 AM in your site's timezone. It looks back 48 hours for any expired members that real-time hooks may have missed (for example, if your site was offline when MemberPress fired the event) and migrates them to the expired list. Each member is processed only once.

Uninstalling

Deleting the plugin via Plugins > Delete will automatically remove all stored options and transients from the database, including your encrypted credentials and tokens. Simply deactivating the plugin leaves your settings in place.

Can't find the answer you are looking for?

If you have any questions that are which are not listed in documentation, Feel free to get in touch with us on

wpexpertplugins@gmail.com