Skip to content

Instantly share code, notes, and snippets.

@mattmintun
Created May 29, 2021 18:51
Show Gist options
  • Save mattmintun/9a6b17b9aaf60584fcd4b092eeef4468 to your computer and use it in GitHub Desktop.
Save mattmintun/9a6b17b9aaf60584fcd4b092eeef4468 to your computer and use it in GitHub Desktop.
Member Added Data (note - "cf_#" fields are "custom fields" and may differ based on the actual fields in production):
Array
(
[action] => mm_member_add
[member_id] => 141
[registered] => 2021-05-29 18:45:12
[cancellation_date] =>
[last_logged_in] =>
[last_updated] => 2021-05-29 18:45:12
[days_as_member] => 0
[status] => 1
[status_name] => Active
[membership_level] => 1
[membership_level_name] => Free Membership
[is_complimentary] => false
[first_name] => Test
[last_name] => User
[username] => [email protected]
[email] => [email protected]
[phone] => 6613104446
[billing_address] =>
[billing_address2] =>
[billing_city] =>
[billing_state] =>
[billing_zip_code] =>
[billing_country] =>
[shipping_address] =>
[shipping_address2] =>
[shipping_city] =>
[shipping_state] =>
[shipping_zip_code] =>
[shipping_country] =>
[cf_7] =>
[cf_8] =>
[cf_9] =>
[cf_10] =>
[cf_11] =>
[cf_12] =>
[cf_13] =>
[cf_14] =>
[cf_15] =>
)
Membership Level Changed Data (take note of last_membership_name && last_membership_id):
Array
(
[action] => mm_membership_change
[member_id] => 141
[registered] => 2021-05-29 18:45:12
[cancellation_date] =>
[last_logged_in] =>
[last_updated] => 2021-05-29 18:45:32
[days_as_member] => 0
[status] => 1
[status_name] => Active
[membership_level] => 3
[membership_level_name] => Membership B
[is_complimentary] => true
[first_name] => Test
[last_name] => User
[username] => [email protected]
[email] => [email protected]
[phone] => 6613104446
[billing_address] =>
[billing_address2] =>
[billing_city] =>
[billing_state] =>
[billing_zip_code] =>
[billing_country] =>
[shipping_address] =>
[shipping_address2] =>
[shipping_city] =>
[shipping_state] =>
[shipping_zip_code] =>
[shipping_country] =>
[last_membership_name] => Free Membership
[last_membership_id] => 1
[cf_7] =>
[cf_8] =>
[cf_9] =>
[cf_10] =>
[cf_11] =>
[cf_12] =>
[cf_13] =>
[cf_14] =>
[cf_15] =>
)
Status Change Data (take note of last_status_name && last_status_id):
Array
(
[action] => mm_status_change
[member_id] => 141
[registered] => 2021-05-29 18:45:12
[cancellation_date] =>
[last_logged_in] =>
[last_updated] => 2021-05-29 18:46:59
[days_as_member] => 1
[status] => 2
[status_name] => Canceled
[membership_level] => 1
[membership_level_name] => Free Membership
[is_complimentary] => false
[first_name] => Test
[last_name] => User
[username] => [email protected]
[email] => [email protected]
[phone] => 6613104446
[billing_address] =>
[billing_address2] =>
[billing_city] =>
[billing_state] =>
[billing_zip_code] =>
[billing_country] =>
[shipping_address] =>
[shipping_address2] =>
[shipping_city] =>
[shipping_state] =>
[shipping_zip_code] =>
[shipping_country] =>
[last_status_name] => Active
[last_status_id] => 1
[cf_7] =>
[cf_8] =>
[cf_9] =>
[cf_10] =>
[cf_11] =>
[cf_12] =>
[cf_13] =>
[cf_14] =>
[cf_15] =>
)
Payment Received (includes Order Data in JSON):
Array
(
[action] => mm_payment_received
[member_id] => 143
[registered] => 2021-05-29 18:51:00
[cancellation_date] =>
[last_logged_in] =>
[last_updated] => 2021-05-29 18:51:00
[days_as_member] => 0
[status] => 6
[status_name] => Pending Activation
[membership_level] => 3
[membership_level_name] => Membership B
[is_complimentary] => false
[first_name] => Test
[last_name] => User
[username] => [email protected]
[email] => [email protected]
[phone] => 6613104446
[billing_address] => 1234 Street
[billing_address2] =>
[billing_city] => City
[billing_state] => CA
[billing_zip_code] => 97111
[billing_country] => United States
[shipping_address] => 1234 Street
[shipping_address2] =>
[shipping_city] => City
[shipping_state] => CA
[shipping_zip_code] => 97111
[shipping_country] => United States
[cf_7] =>
[cf_8] =>
[cf_9] =>
[cf_10] => asdf
[cf_11] => asdf
[cf_12] =>
[cf_13] =>
[cf_14] =>
[cf_15] =>
[order_id] => 160
[order_number] => 1160
[order_item_id] => 166
[order_transaction_id] => 302
[order_ip_address] => 127.0.0.1
[order_currency] => USD
[order_shipping_method] =>
[order_billing_address] => 1234 Street
[order_billing_address2] =>
[order_billing_city] => City
[order_billing_state] => CA
[order_billing_zipcode] => 97111
[order_billing_country] => US
[order_shipping_address] => 1234 Street
[order_shipping_address2] =>
[order_shipping_city] => City
[order_shipping_state] => CA
[order_shipping_zipcode] => 97111
[order_shipping_country] => US
[order_affiliate_id] =>
[order_subaffiliate_id] =>
[order_products] => [{"id":"4","name":"Membership Level B","sku":"","amount":"5.00","quantity":"1","total":"5.00","is_recurring":false,"recurring_amount":"0.0000","rebill_period":null,"rebill_frequency":null}]
[order_total] => 5.00
[order_subtotal] => 5.00
[order_shipping] => 0.00
[order_discount] => 0
[order_coupons] => []
[order_prorations] => []
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment