latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Marco Delgado

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 16 replies - 1 through 16 (of 16 total)
Author Replies
Author Replies
Posted: Monday Mar 25th, 2013 at 7:33 pm #45683

Anyone…??

Posted: Tuesday Dec 4th, 2012 at 9:20 pm #33508

Hi Bruce,

In regards of

get_user_field('s2member_last_payment_time');

Where is this line supposed to go? can’t find the right file.

Posted: Tuesday Dec 4th, 2012 at 7:48 pm #33502

Hi Bruce,

Yes, I know I can create a field using your method, however, how can I have s2member automatically populate these fields based on the date of the last payment received, which is information provided by paypal.

Posted: Tuesday Dec 4th, 2012 at 1:34 am #33415

Update:

I’ve managed to get information from PayPal, the problem was a combination of the lack of IPN and PTN/Auto Return integration.

I’m opening another thread with another question.

Posted: Monday Dec 3rd, 2012 at 11:17 pm #33412

This is what I can see in the log after I resent the IPN transation in Paypal:

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.48 MB :: Real Memory 38.75 MB :: Peak Memory 38.54 MB :: Real Peak Memory 38.75 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => 'If you\'re absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.',
    2 => 's2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.',
    3 => 'Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
)',
  ),
)

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.38 MB :: Real Memory 38.50 MB :: Peak Memory 38.45 MB :: Real Peak Memory 38.50 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: 
array (
  'payer_id' => 'URCYTMRZ3WL7Y',
  'option_selection1' => '78',
  'option_selection2' => '203.52.130.163',
  'ipn_track_id' => 'e975abbb2b269',
  'invoice' => '50bbdd3119aea~203.52.130.163',
  'charset' => 'windows-1252',
  'payment_gross' => '',
  'verify_sign' => 'An5ns1Kso7MWUdW4ErQKJJJ4qi4-AwkyDDRj1paRGZ0aKlL.IMB9Wi6O',
  'item_name' => 'AIH Membership - Members & Fellows / description and pricing details here.',
  'txn_type' => 'subscr_payment',
  'receiver_id' => 'YSZQ2A4LMULC2',
  'payment_fee' => '',
  'mc_currency' => 'AUD',
  'transaction_subject' => 'AIH Membership - Members & Fellows / description and pricing details here.',
  'custom' => 'wp.aih.org.au',
  'protection_eligibility' => 'Ineligible',
  'payer_status' => 'unverified',
  'first_name' => 'Michael',
  'subscr_id' => 'I-CUABVFWBPCSE',
  'mc_gross' => '290.00',
  'payment_date' => '15:03:58 Dec 02, 2012 PST',
  'payment_status' => 'Completed',
  'business' => 'webmaster@aih.org.au',
  'item_number' => '1',
  'last_name' => 'Castley',
  'txn_id' => '12L51824M4324801E',
  'mc_fee' => '7.26',
  'resend' => 'true',
  'payment_type' => 'instant',
  'notify_version' => '3.7',
  'option_name1' => 'Referencing Customer ID',
  'option_name2' => 'Customer IP Address',
  'payer_email' => 'michael.castley@privateforests.tas.gov.au',
  'receiver_email' => 'webmaster@aih.org.au',
  'residence_country' => 'AU',
  's2member_log' => 
  array (
    0 => 'IPN received on: Tue Dec 4, 2012 4:13:44 am CET',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 'Unable to verify `$_SERVER["HTTP_HOST"]`. Please check the `custom` value in your Button Code. It MUST start with your domain name.',
  ),
  'subscr_gateway' => 'paypal',
)

PHP v5.3.3 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 38.49 MB :: Real Memory 38.75 MB :: Peak Memory 38.55 MB :: Real Peak Memory 38.75 MB
www.aih.org.au/?s2member_paypal_notify=1
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11
array (
  's2member_log' => 
  array (
    0 => 'Unable to verify $_POST vars. This is most likely related to an invalid configuration of s2Member, or a problem with server compatibility.',
    1 => 'If you\'re absolutely SURE that your configuration is valid, you may want to run some tests on your server, just to be sure $_POST variables are populated, and that your server is able to connect/communicate with your Payment Gateway over an HTTPS connection.',
    2 => 's2Member uses the `WP_Http` class for remote connections; which will try to use `cURL` first, and then fall back on the `FOPEN` method when `cURL` is not available. On a Windows® server, you may have to disable your `cURL` extension; and instead, set `allow_url_fopen = yes` in your php.ini file. The `cURL` extension (usually) does NOT support SSL connections on a Windows® server.',
    3 => 'Please see this thread: `http://www.s2member.com/forums/topic/ideal-server-configuration-for-s2member/` for details regarding the ideal server configuration for s2Member.',
    4 => 'array (
  \'s2member_paypal_notify\' => \'1\',
)',
  ),
)

This is the button that was used to create the payment above:

[s2Member-PayPal-Button level="1" ccaps="" desc="AIH Membership - Members & Fellows / description and pricing details here." ps="paypal" lc="" cc="AUD" dg="0" ns="1" custom="wp.aih.org.au" ta="290" tp="1" tt="Y" ra="290" rp="1" rt="Y" rr="1" rrt="" rra="1" image="http://aih.org.au/images/paypal.gif" output="anchor" /]

I notice that custom=”wp.aih.org.au” – I used the subdomain wp.aih.org.au for testing before launching… could this be the problem? The WP instance is not running on wp.aih.org.au anymore, rather aih.org.au

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Monday Dec 3rd, 2012 at 10:18 pm #33405

Bruce,

1) I’ve turned logging on.
2) I didn’t have the IPN Integration URL in PayPal. I’ve corrected this… I hope is the reason why s2member didn’t populate the fields.

I went to PayPal and resent the IPN details for one of the transactions, however the information is still not shown in the members profile.

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Monday Dec 3rd, 2012 at 5:12 pm #33377
Posted: Monday Dec 3rd, 2012 at 5:09 pm #33375

Bruce,

I tried saving one of the EOT dates (+1year) and it was saved perfectly.

Will try the server check tool now.

Posted: Monday Dec 3rd, 2012 at 4:43 pm #33370

Hi Bruce,

These are my currently active plugins:

All-in-One Event Calendar by Timely
Custom Post Widget
NextGEN Gallery
s2Member® Framework

Posted: Monday Dec 3rd, 2012 at 2:00 am #33272

Hi Bruce,

I’ve checked and none of paid members have these details.

What’s the next step to fix this?

Thanks for your help

  • This reply was modified 4 years, 1 month ago by  Marco Delgado.
Posted: Wednesday Oct 17th, 2012 at 12:39 am #28629

Nevermind, solved!

Posted: Tuesday Jun 26th, 2012 at 2:35 am #17480

That works perfectly Henning, thanks.

I have another issue related to this topic.

As I explained above, I’m effectively selling two memberships. The membership number two can be cancelled by a user and still maintain membership 1 status. This means any given user can have 1 or 2 memberships at the same time, and each will have its own starting date and expiration date.

To explain it better:

A user will always have membership 1, which is the base one. However users can add a membership 2 on top of the first one.

This means that a user can only have membership, however if they can only have membership 2 if they’ve already paid for membership 1.

Makes sense?

My concern is:

How can I manage having two different memberships for one single user with separate starting dates/pricing?
When a user upgrades to membership 2, I need them to fill extra fields with a bit more information. This ONLY happens when they’re upgrading to membership 2 from membership 1.

  • This reply was modified 4 years, 6 months ago by  Marco Delgado.
Posted: Wednesday Jun 20th, 2012 at 5:41 am #16981

Hi Cristian,

I tried with another theme and it renders the button… seems like the theme I’m using is not rendering for some reason… any clue on how to fix it?

I’ve already customised all my website using that theme so it’d be a real pain if I have to change it in order to use the paypal buttons.

Any ideas on how can I fix this?

Regards,

Posted: Sunday Jun 17th, 2012 at 7:27 pm #16745

Thanks for your help Cristian…

The strange thing is that even when I put the code outside the tabs, it still won’t be rendered. It actually won’t be rendered on any page regardless of the structure…

Posted: Wednesday Jun 13th, 2012 at 7:43 am #16357

Hi Cristian,

I’m using tabs to display the table, here’s the code:

[tabs]

[tab title="<strong>AIH Membership</strong>"]
<h2>AIH Membership Fee Schedule</h2>
<h2></h2>
<table id="supportOptions" summary="This table charts of our different support options."><caption> </caption>
<thead>
<tr>
<th class="centeredText mainTitle">Membership Category</th>
<th class="centeredText mainTitle">Joining Fee</th>
<th class="centeredText mainTitle">Membership Fee</th>
<th class="centeredText mainTitle">Total</th>
<th class="centeredText mainTitle">Subscribe</th>
</tr>
</thead>
<tbody>
<tr>
<td class="zebraRecord"><strong>Members &amp; Fellows</strong></td>
<td class="zebraRecord centeredText">$77</td>
<td class="zebraRecord centeredText">$290</td>
<td class="zebraRecord centeredText"><strong>$367</strong></td>
<td class="zebraRecord centeredText"><form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="business" value="webmaster@aih.org.au" /> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <!-- Instant Payment Notification &#038; Return Page Details -->
<input type="hidden" name="notify_url" value="http://wp.aih.org.au/wp/?s2member_paypal_notify=1" /> <input type="hidden" name="cancel_return" value="http://wp.aih.org.au/wp/" /> <input type="hidden" name="return" value="http://wp.aih.org.au/wp/?s2member_paypal_return=1" /> <input type="hidden" name="rm" value="2" /> <!-- Configures Basic Checkout Fields --> <input type="hidden" name="lc" value="" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="custom" value="wp.aih.org.au" /> <input type="hidden" name="currency_code" value="AUD" /> <input type="hidden" name="page_style" value="paypal" /> <input type="hidden" name="charset" value="utf-8" /> <input type="hidden" name="item_name" value="AIH Membership - Members &amp; Fellows / description and pricing details here." /> <input type="hidden" name="item_number" value="1" /> <!-- Configures s2Member's Unique Invoice ID/Code  -->[s2Member-PayPal-Button level="1" ccaps="" desc="AIH Membership - Members &amp; Fellows / description and pricing details here." ps="paypal" lc="" cc="AUD" dg="0" ns="1" custom="wp.aih.org.au" ta="367" tp="1" tt="Y" ra="290" rp="1" rt="Y" rr="1" rrt="" rra="1" image="default" output="button" /]</form></td>
</tr>
<tr>
<td><strong>Corporate</strong></td>
<td class="centeredText">$115</td>
<td class="centeredText">$920</td>
<td class="centeredText"><strong>$1,035</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Retired Members &amp; Fellows</strong></td>
<td class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></td>
<td class="zebraRecord centeredText">$190</td>
<td class="zebraRecord centeredText"><strong>$190</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Associates</strong></td>
<td class="centeredText">$77</td>
<td class="centeredText">$290</td>
<td class="centeredText"><strong>$367</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Student w/magazine suscription</strong></td>
<td class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></td>
<td class="zebraRecord centeredText">$88</td>
<td class="zebraRecord centeredText"><strong>$88</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Student enrolled with preferred Member Training Provider</strong></td>
<td class="centeredText"><span class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></span></td>
<td class="centeredText">$72</td>
<td class="centeredText"><strong>$72</strong></td>
<td class="centeredText"></td>
</tr>
<tr>
<td class="zebraRecord"><strong>Overseas</strong></td>
<td class="zebraRecord centeredText">$77</td>
<td class="zebraRecord centeredText">$265</td>
<td class="zebraRecord centeredText"><strong>$342</strong></td>
<td class="zebraRecord centeredText"></td>
</tr>
<tr>
<td><strong>Overseas Singapore</strong></td>
<td class="centeredText"><span class="zebraRecord centeredText"><img src="http://wp.aih.org.au/wp/x.gif" alt="Not available" width="8px" height="8px" /></span></td>
<td class="centeredText">$116</td>
<td class="centeredText"><strong>$116</strong></td>
<td class="centeredText"></td>
</tr>
</tbody>
</table>
[/tab]
[/tabs]
Posted: Thursday May 17th, 2012 at 7:41 pm #13826

Solved

Viewing 16 replies - 1 through 16 (of 16 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.