MemberPress is a WordPress plugin that enables you to monetize your WordPress site, build a membership site, control access to your content, and sell online courses and digital downloads.
Connect to MemberPress
To connect Anedot to MemberPress successfully, follow the steps below:
Access the Settings>Integrations>Directory tab within your Anedot fundraising account.
Click the blue + New Connection button in the upper right corner.
Select MemberPress from the Directory list.
Next, select the Action Pages you would like connected to MemberPress. The default is All Action Pages.
To exclude pages, enter a comma-separated list of the Action Page IDs
Optionally, you can scope the integration to only send team-specific data to MemberPress.
Add your WordPress Domain.
Add your WordPress Username.
Add your WordPress Application Password.
WordPress Application Password is created on a per-user basis in the WordPress dashboard (https://[WordPress Domain]/wp-admin/users.php). This Password must correspond with the Username entered in Step 6.
Click the blue Save button.
The Action Pages, Team, and credentials can be modified at any time post-setup.
Data Relays
Anedot relays data for Donation and Lead Pages to MemberPress.
Every submission results in a request to "find a member" in MemberPress based on email.
If there is a matching contact, no relay is generated.
If there is no matching contact, a contact is created.
Donation submissions will include a Transaction Relay.
To relay transaction data for Donation Pages, a membership_id Custom Hidden Field must be applied to the Action Page, matching the value in WordPress. This enables transactions containing memberships to be processed by MemberPress.
The value for the membership_id Custom Hidden Field can be set using URL Parameters, Page Specific Values, or Global Values.
Anedot does not relay other Custom Fields to MemberPress.
Push Unsent (failed donations, all donations) + date range for relays works for all Action Pages, regardless of page type.
Field Mapping
The Anedot Fields match the Submission's Raw Data and the MemberPress Fields match the Request Body relay.
Member Relay
Anedot Field | MemberPress Field |
address {postal_code} | zip |
address {city} | city |
address {region} | state |
address {country} | country |
address {line1} | address1 |
address {line2} | address2 |
username | |
lastName | last_name |
firstName | first_name |
Transaction Relay
Anedot Field | MemberPress Field |
total_amount | total |
total_amount | amount |
id (from Member Response Relay) | member |
“complete” | status |
“manual” | gateway |
(Submission) id | trans_num |
created_at | created_at |
membership_id* | membership |
*A custom hidden field that must be added to the Anedot AP in order to relay transaction fields.
Example Payloads
Request Headers
{
"User-Agent": "Anedot/c8daf62c",
"Content-Type": "application/json",
"Authorization": "Basic a2V2aW5hbmVkb3Rjb206b2pwRnJIZVF3aXhRZ2YyODBCMHlWekpt",
"X-Uniq-Identifier": "71c82bb8-123a-4cd9-b89d-d971b805db7f"
}
Request Body
Create Member
{
"zip": "99999",
"city": "New Orleans",
"email": "[email protected]",
"state": "LA",
"country": "US",
"address1": "123 Anedot Way",
"address2": "Suite 4567",
"username": "[email protected]",
"last_name": "Dote",
"first_name": "Anna"
}
Transaction
{
"total": "50.00",
"amount": "50.00",
"member": "123456789",
"status": "complete",
"gateway": "manual",
"trans_num": "87234d0a-b123-4dca-8ee1-6b36d4ab4800",
"created_at": "2023-08-24 15:01:04",
"membership": "18"
}
Response Body
Create Member - Success
{
"id": 238627470,
"url": "",
"email": "[email protected]",
"address": {
"mepr_address_one": "123 Anedot Way",
"mepr_address_two": "Suite 4567",
"mepr_address_zip": "99999",
"mepr_address_city": "New Orleans",
"mepr_address_state": "LA",
"mepr_address_country": "US"
},
"message": "",
"profile": {},
"nicename": "annadoteanedot-com",
"username": "[email protected]",
"last_name": "Dote",
"sub_count": null,
"first_name": "Anna",
"login_count": "0",
"display_name": "Anna Dote",
"registered_at": "2023-08-24 15:01:06",
"trial_txn_count": "0",
"active_txn_count": "0",
"expired_txn_count": "0",
"active_memberships": [],
"recent_transactions": [],
"recent_subscriptions": []
}
Transaction - Success
{
"id": "15",
"total": "50.00",
"amount": "50.00",
"coupon": "0",
"member": {
"id": 123456789,
"url": "",
"email": "[email protected]",
"address": {
"mepr_address_one": "123 Anedot Way",
"mepr_address_two": "Suite 4567",
"mepr_address_zip": "99999",
"mepr_address_city": "New Orleans",
"mepr_address_state": "LA",
"mepr_address_country": "US"
},
"message": "",
"profile": {},
"nicename": "annadoteanedot-com",
"username": "[email protected]",
"last_name": "Dote",
"first_name": "Anna",
"display_name": "Anna Dote",
"registered_at": "2023-08-24 15:01:06"
},
"rebill": false,
"status": "complete",
"gateway": "manual",
"order_id": "0",
"prorated": "0",
"response": null,
"tax_desc": "",
"tax_rate": "0.000",
"txn_type": "payment",
"tax_class": "standard",
"trans_num": "87234d0a-b123-4dca-8ee1-6b36d4ab4800",
"created_at": "2023-08-24 15:01:04",
"expires_at": "0000-00-00 00:00:00",
"membership": {
"id": 18,
"date": "2023-08-11 14:14:57",
"group": "0",
"price": "0.00",
"title": "Test",
"trial": false,
"author": "238627436",
"period": "1",
"status": "publish",
"content": "Testing the membership",
"excerpt": "",
"date_gmt": "2023-08-11 19:14:57",
"modified": "2023-08-11 14:14:57",
"plan_code": "",
"tax_class": "standard",
"access_url": "",
"tax_exempt": false,
"trial_days": "1",
"trial_once": "1",
"expire_type": "none",
"expire_unit": "days",
"group_order": "0",
"period_type": "lifetime",
"custom_price": "",
"expire_after": "1",
"expire_fixed": "2023-08-11",
"limit_cycles": false,
"modified_gmt": "2023-08-11 19:14:57",
"trial_amount": "0",
"allow_renewal": false,
"pricing_title": "Test",
"is_highlighted": false,
"register_price": "",
"custom_template": "single-product",
"pricing_display": "auto",
"limit_cycles_num": "2",
"pricing_benefits": [""],
"custom_login_urls": [],
"thank_you_message": "",
"thank_you_page_id": "0",
"pricing_button_txt": "Sign Up",
"pricing_footer_txt": "",
"pricing_show_price": true,
"signup_button_text": "Sign Up",
"limit_cycles_action": "expire",
"pricing_heading_txt": "",
"thank_you_page_type": "message",
"use_custom_template": false,
"custom_profile_fields": [],
"register_price_action": "default",
"custom_payment_methods": [],
"disable_address_fields": false,
"thank_you_page_enabled": false,
"cannot_purchase_message": "You don't have access to purchase this item.",
"pricing_button_position": "footer",
"customize_profile_fields": false,
"custom_login_urls_default": "",
"custom_login_urls_enabled": false,
"customize_payment_methods": false,
"limit_cycles_expires_type": "days",
"limit_cycles_expires_after": "1",
"simultaneous_subscriptions": false
},
"tax_amount": "0.00",
"subscription": "0",
"tax_compound": "0",
"tax_shipping": "1",
"tax_reversal_amount": "0.00",
"corporate_account_id": "0",
"parent_transaction_id": "0",
"subscription_payment_index": false
}
Error
{
"code": "mp_db_create_error",
"data": null,
"message": "The user was unable to be saved: Sorry, that email address is already used!"
}
Response Status (Success)
200
Response Status (Error)
500