EOT not extending with new purchase
Posted: May 15th, 2011, 4:59 pm
I am experiencing an unusual problem where the EOT time is not extending when a user purchases an additional membership prior to their current term expiring. However, it works fine when the user does not have an EOT to begin with.
I am currently testing with PayPal in sandbox mode. Here is my button code. They are "Buy Now" buttons.
I am currently testing with PayPal in sandbox mode. Here is my button code. They are "Buy Now" buttons.
- Code: Select all
[s2Member-PayPal-Button level="2" ccaps="" desc="1 Month (non-recurring)" ps="paypal" cc="USD" ns="1" custom="www.mydomain.com" ta="0" tp="0" tt="D" ra="14.95" rp="1" rt="M" rr="BN" image="default" output="button" /]
- Code: Select all
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="seller@seller.com" />
<input type="hidden" name="cmd" value="_xclick" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://www.mydomain.com/members/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://www.mydomain.com/members/" />
<input type="hidden" name="return" value="http://www.mydomain.com/members/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="www.mydomain.com" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="page_style" value="paypal" />
<input type="hidden" name="item_name" value="1 Month (non-recurring)" />
<input type="hidden" name="item_number" value="2::1 M" />
<!-- Identifies/Updates An Existing Member After Checkout -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<input type="hidden" name="modify" value="0" />
<!-- Customizes Prices, Payments & Billing Cycle -->
<input type="hidden" name="amount" value="14.95" />
<!--<input type="hidden" name="src" value="BN" />-->
<!--<input type="hidden" name="sra" value="1" />-->
<!--<input type="hidden" name="a1" value="0" />-->
<!--<input type="hidden" name="p1" value="0" />-->
<!--<input type="hidden" name="t1" value="D" />-->
<!--<input type="hidden" name="a3" value="14.95" />-->
<!--<input type="hidden" name="p3" value="1" />-->
<!--<input type="hidden" name="t3" value="M" />-->
<!-- Displays The PayPal® Image Button -->
<input type="image" src="http://mydomain.com/members/wp-content/themes/1/custom-login/options-1.png" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>
- Code: Select all
www.mydomain.com/members/?s2member_paypal_return=1&tx=3J5989757C988023D&st=Completed&amt=14.95&cc=USD&cm=www%2emydomain%2ecom&item_number=2::1%20M
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
array (
'transaction_subject' => 'www.mydomain.com',
'payment_date' => '14:55:22 May 15, 2011 PDT',
'txn_type' => 'web_accept',
'last_name' => 'User',
'option_selection1' => '2GU21945LY975150R',
'residence_country' => 'US',
'item_name' => '1 Month (non-recurring)',
'payment_gross' => '14.95',
'mc_currency' => 'USD',
'business' => 'seller@seller.com',
'payment_type' => 'instant',
'protection_eligibility' => 'Ineligible',
'payer_status' => 'verified',
'tax' => '0.00',
'payer_email' => 'buyer@buyer.com',
'txn_id' => '3J5989757C988023D',
'quantity' => '1',
'receiver_email' => 'seller@seller.com',
'first_name' => 'Test',
'option_name1' => 'Updating Subscr. ID',
'payer_id' => 'GFQM3JV5ZZC6Y',
'receiver_id' => 'C9645FNMKD4T6',
'item_number' => '2::1 M',
'handling_amount' => '0.00',
'payment_status' => 'Completed',
'payment_fee' => '0.73',
'mc_fee' => '0.73',
'shipping' => '0.00',
'mc_gross' => '14.95',
'custom' => 'www.mydomain.com',
'charset' => 'windows-1252',
's2member_log' =>
array (
0 => 'Return-Data received on: Sun May 15, 2011 9:51:41 pm UTC',
1 => 's2Member POST vars verified through a POST back to PayPal®.',
2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
3 => 's2Member txn_type identified as (web_accept|subscr_signup|subscr_payment).',
4 => 's2Member txn_type identified as (web_accept|subscr_signup|subscr_payment) w/ update vars.',
5 => 's2Member Level/Capabilities updated w/ advanced update routines.',
6 => 'Redirecting Customer to the Login Page. They need to log back in.',
),
'subscr_gateway' => 'paypal',
'subscr_id' => '3J5989757C988023D',
'eotper' => '1 M',
'ccaps' => '',
'level' => '2',
)
- Code: Select all
www.mydomain.com/members/?s2member_paypal_notify=1
User-Agent:
array (
'mc_gross' => '14.95',
'protection_eligibility' => 'Ineligible',
'payer_id' => 'GFQM3JV5ZZC6Y',
'tax' => '0.00',
'payment_date' => '14:55:22 May 15, 2011 PDT',
'payment_status' => 'Completed',
'charset' => 'windows-1252',
'first_name' => 'Test',
'option_selection1' => '2GU21945LY975150R',
'mc_fee' => '0.73',
'notify_version' => '3.1',
'custom' => 'www. mydomain.com',
'payer_status' => 'verified',
'business' => 'seller@seller.com',
'quantity' => '1',
'verify_sign' => 'AsY18CNaMEIU48-O.977NL1A3Z6oA.PVJfScgAaZJgkA1MCvWFJVfjls',
'payer_email' => 'buyer@buyer.com',
'option_name1' => 'Updating Subscr. ID',
'txn_id' => '3J5989757C988023D',
'payment_type' => 'instant',
'last_name' => 'User',
'receiver_email' => 'seller@seller.com',
'payment_fee' => '0.73',
'receiver_id' => 'C9645FNMKD4T6',
'txn_type' => 'web_accept',
'item_name' => '1 Month (non-recurring)',
'mc_currency' => 'USD',
'item_number' => '2::1 M',
'residence_country' => 'US',
'test_ipn' => '1',
'handling_amount' => '0.00',
'transaction_subject' => 'www.mydomain.com',
'payment_gross' => '14.95',
'shipping' => '0.00',
'ipn_track_id' => '2N.l9quJaNEcleTG4RDDfg',
's2member_log' =>
array (
0 => 'IPN received on: Sun May 15, 2011 9:51:33 pm UTC',
1 => 's2Member POST vars verified through a POST back to PayPal®.',
2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
3 => 's2Member txn_type identified as (web_accept|subscr_signup).',
4 => 's2Member txn_type identified as (web_accept|subscr_signup) w/ update vars.',
5 => 's2Member Level/Capabilities updated w/ advanced update routines.',
6 => 'Modification Confirmation Email sent to Customer, with a URL that provides them with a way to log back in.',
7 => 'User exists. Handling `payment` for Subscription via (web_accept).',
8 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
),
'subscr_gateway' => 'paypal',
'subscr_id' => '3J5989757C988023D',
'eotper' => '1 M',
'ccaps' => '',
'level' => '2',
'period1' => '0 D',
'mc_amount1' => '0.00',
'period3' => '1 M',
'mc_amount3' => '14.95',
'initial_term' => '0 D',
'initial' => '14.95',
'regular' => '14.95',
'regular_term' => '1 M',
'recurring' => '0',
)