Community Support Forums — WordPress® ( Users Helping Users ) — 2011-09-27T21:51:21-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15262 2011-09-27T21:51:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15262&p=41751#p41751 <![CDATA[Re: Payment time field clarifications]]> Statistics: Posted by PseudoNyhm — September 27th, 2011, 9:51 pm


]]>
2011-09-27T21:31:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15262&p=41742#p41742 <![CDATA[Re: Payment time field clarifications]]>

UPDATE: Another confusion: It seems that get_user_field("s2member_last_payment_time") will not return anything if the user is not currently a Level 1+ (even if they had paid recently). Is this accurate?
Yes, that's about it. Actually, this is a result of the EOT. When/if a Member is demoted, s2member_last_payment_time is dropped from the database, but this remains always: s2member_paid_registration_times

You can search for delete_user_option inside this file to see what is dropped during an EOT event. viewtopic.php?f=40&t=12996&src_doc_v=110927#src_doc_line_98

Statistics: Posted by Jason Caldwell — September 27th, 2011, 9:31 pm


]]>
2011-09-25T18:17:15-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15262&p=39141#p39141 <![CDATA[Re: Payment time field clarifications]]> Statistics: Posted by PseudoNyhm — September 25th, 2011, 6:17 pm


]]>
2011-09-25T17:09:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15262&p=39115#p39115 <![CDATA[Re: Payment time field clarifications]]>
b. If they resubscribe, the original time won't be replaced, it remains as the first time it was paid.

c. You can create your own logs with a custom script and the Notifications API.

Statistics: Posted by Cristián Lávaque — September 25th, 2011, 5:09 pm


]]>
2011-09-22T11:50:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15262&p=38932#p38932 <![CDATA[Payment time field clarifications]]> get_user_field("s2member_paid_registration_times") would give me all the past payments received for a user. However, it only appears to include:

  1. The initial Level 0 registration time
  2. The first Level 1 registration time

Any recurring payments are not included. Nonetheless, get_user_field("s2member_last_payment_time") will return the last known actual payment time.

For example, suppose the user first subscribed for Level 1 on Jul 9 (with monthly billing). Suppose this is billed again on Aug 9; get_user_field("s2member_last_payment_time") returns Aug 9, as expected. However, get_user_field("s2member_paid_registration_times") does not include Aug 9 (it only ever returns Jul 9 for the initial Level 1 payment).

  1. Can you clarify these fields for me?
  2. If the user's Level 1 subscription lapses (demoted to Level 0), then they re-subscribe at Level 1, will the "s2member_paid_registration_times" array replace the Level 1 timestamp with the new one (or will there be a second Level 1 timestamp)?
  3. Is there any way to get the full payment history (of each monthly recurring payment made)?

UPDATE: Another confusion: It seems that get_user_field("s2member_last_payment_time") will not return anything if the user is not currently a Level 1+ (even if they had paid recently). Is this accurate?

Statistics: Posted by PseudoNyhm — September 22nd, 2011, 11:50 am


]]>