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: Lisa Llewellyn

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


My Latest Replies (From Various Topics)

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Friday Aug 24th, 2012 at 11:38 am #22985

Did you get this to work yet? I’m needing the same thing.

Posted: Tuesday Apr 10th, 2012 at 1:05 am #10424

Yes, I’ve tried it both ways, with no luck either way. It is currently with the http://

Posted: Monday Apr 9th, 2012 at 2:59 pm #10368

That works. Thanks!!

Posted: Monday Apr 9th, 2012 at 2:28 pm #10366

Thanks, Christian.

Yes, the user will always be logged in before making a purchase. If you could give me a work-around, that would be great.

I am pasting the log files below. If you can’t figure something out from these files, I will try the plugin organizer. However, my plugins and versions are the same on both servers, so I’m not hopeful that I will find anything.

Log files associated with a failed test:

PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 34.72 MB :: Real Memory 35.50 MB :: Peak Memory 35.17 MB :: Real Peak Memory 35.50 MB
chiccritiqueforum.com/test-class
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
-------- Input vars: ( Mon Apr 9, 2012 6:05:59 pm UTC ) --------
array (
  'x_type' => 'AUTH_CAPTURE',
  'x_method' => 'CC',
  'x_email' => 'xxx@yahoo.com',
  'x_first_name' => 'lisa',
  'x_last_name' => 'llewellyn',
  'x_customer_ip' => '67.182.205.198',
  'x_invoice_num' => 's2-4f832507155b6',
  'x_description' => 'Test custom capability',
  's2_invoice' => '*:test80class',
  's2_custom' => 'chiccritiqueforum.com',
  'x_tax' => '0.00',
  'x_amount' => '0.01',
  'x_card_num' => '************x053',
  'x_exp_date' => '2013-06',
  'x_card_code' => '847',
  'x_address' => 'xxx',
  'x_city' => 'Hyde Park',
  'x_state' => 'UT',
  'x_country' => 'US',
  'x_zip' => '84318',
  'x_version' => '3.1',
  'x_login' => '2ySVeDn87s',
  'x_tran_key' => '2QJv7F6s87vyp238',
  'x_delim_data' => 'true',
  'x_delim_char' => ',',
  'x_encap_char' => '"',
)
-------- Output string/vars: ( Mon Apr 9, 2012 6:06:01 pm UTC ) --------
"1","1","1","This transaction has been approved.","82980P","Y","4298915430","s2-4f832507155b6","Test custom capability","0.01","CC","auth_capture","","lisa","llewellyn","","680 E 150 S","Hyde Park","UT","84318","US","","","lisamllewellyn@yahoo.com","","","","","","","","","0.00","","","","","A353D8D315916785434E905682F2A04E","M","","","","","","","","","","","","XXXX6053","MasterCard","","","","","","","","","","","","","","","","","*:test80class","chiccritiqueforum.com"
array (
  0 => '1',
  1 => '1',
  2 => '1',
  3 => 'This transaction has been approved.',
  4 => '82980P',
  5 => 'Y',
  6 => '4298915430',
  7 => 's2-4f832507155b6',
  8 => 'Test custom capability',
  9 => '0.01',
  10 => 'CC',
  11 => 'auth_capture',
  12 => '',
  13 => 'lisa',
  14 => 'xxx',
  15 => '',
  16 => 'xxx',
  17 => 'Hyde Park',
  18 => 'UT',
  19 => '84318',
  20 => 'US',
  21 => '',
  22 => '',
  23 => 'xxx@yahoo.com',
  24 => '',
  25 => '',
  26 => '',
  27 => '',
  28 => '',
  29 => '',
  30 => '',
  31 => '',
  32 => '0.00',
  33 => '',
  34 => '',
  35 => '',
  36 => '',
  37 => 'A353D8D315916785434E905682F2A04E',
  38 => 'M',
  39 => '',
  40 => '',
  41 => '',
  42 => '',
  43 => '',
  44 => '',
  45 => '',
  46 => '',
  47 => '',
  48 => '',
  49 => '',
  50 => 'XXXXX053',
  51 => 'MasterCard',
  52 => '',
  53 => '',
  54 => '',
  55 => '',
  56 => '',
  57 => '',
  58 => '',
  59 => '',
  60 => '',
  61 => '',
  62 => '',
  63 => '',
  64 => '',
  65 => '',
  66 => '',
  67 => '',
  68 => '*:test80class',
  69 => 'chiccritiqueforum.com',
  'response_code' => '1',
  'response_subcode' => '1',
  'response_reason_code' => '1',
  'response_reason_text' => 'This transaction has been approved.',
  'authorization_code' => '82980P',
  'avs_response' => 'Y',
  'transaction_id' => '4298915430',
  'invoice_number' => 's2-4f832507155b6',
  'description' => 'Test custom capability',
  'amount' => '0.01',
  'method' => 'CC',
  'transaction_type' => 'auth_capture',
  'customer_id' => '',
  'first_name' => 'lisa',
  'last_name' => 'xxx',
  'company' => '',
  'address' => 'xxx',
  'city' => 'Hyde Park',
  'state' => 'UT',
  'zipcode' => '84318',
  'country' => 'US',
  'phone' => '',
  'fax' => '',
  'email' => 'xxx@yahoo.com',
  'ship_to_first_name' => '',
  'ship_to_last_name' => '',
  'ship_to_company' => '',
  'ship_to_address' => '',
  'ship_to_city' => '',
  'ship_to_state' => '',
  'ship_to_zipcode' => '',
  'ship_to_country' => '',
  'tax' => '0.00',
  'duty' => '',
  'freight' => '',
  'tax_exempt' => '',
  'po_number' => '',
  'md5_hash' => 'A353D8D315916785434E905682F2A04E',
  'card_code_response' => 'M',
  'cavv_response' => '',
  'card_number' => '',
  'card_type' => '',
  'split_tender_id' => '',
  'requested_amount' => '',
  'balance_on_card' => '',
)
PHP v5.2.17 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 32.09 MB :: Real Memory 32.50 MB :: Peak Memory 32.35 MB :: Real Peak Memory 32.50 MB
chiccritiqueforum.com/?s2member_pro_authnet_notify=1
User-Agent: 
array (
  'x_response_code' => '1',
  'x_response_reason_code' => '1',
  'x_response_reason_text' => 'This transaction has been approved.',
  'x_avs_code' => 'Y',
  'x_auth_code' => '82980P',
  'x_trans_id' => '4298915430',
  'x_method' => 'CC',
  'x_card_type' => 'MasterCard',
  'x_account_number' => 'XXXXx053',
  'x_first_name' => 'lisa',
  'x_last_name' => 'xxx',
  'x_company' => '',
  'x_address' => 'xxx',
  'x_city' => 'Hyde Park',
  'x_state' => 'UT',
  'x_zip' => '84318',
  'x_country' => 'US',
  'x_phone' => '',
  'x_fax' => '',
  'x_email' => 'xxx@yahoo.com',
  'x_invoice_num' => 's2-4f832507155b6',
  'x_description' => 'Test custom capability',
  'x_type' => 'auth_capture',
  'x_cust_id' => '',
  'x_ship_to_first_name' => '',
  'x_ship_to_last_name' => '',
  'x_ship_to_company' => '',
  'x_ship_to_address' => '',
  'x_ship_to_city' => '',
  'x_ship_to_state' => '',
  'x_ship_to_zip' => '',
  'x_ship_to_country' => '',
  'x_amount' => '0.01',
  'x_tax' => '0.00',
  'x_duty' => '0.00',
  'x_freight' => '0.00',
  'x_tax_exempt' => 'FALSE',
  'x_po_num' => '',
  'x_MD5_Hash' => 'A353D8D315916785434E905682F2A04E',
  'x_cvv2_resp_code' => 'M',
  'x_cavv_response' => '',
  'x_test_request' => 'false',
  's2_invoice' => '*:test80class',
  's2_custom' => 'chiccritiqueforum.com',
  's2member_log' => 
  array (
    0 => 'IPN received on: Mon Apr 9, 2012 6:06:00 pm UTC',
    1 => 's2Member POST vars verified with Authorize.Net®.',
    2 => 'Ignoring this IPN. The transaction does NOT require any action on the part of s2Member.',
  ),
)
Posted: Friday Apr 6th, 2012 at 1:01 am #10227

Just for clarification to the above post, the success url does not get triggered when I use the %%user_id%% variable. Instead, it gives the customer the generic success page that prompts them to login again. It does not add the custom capability to the user’s account. Something about using %%user_id%% is causing s2member to fail in the middle of the processing. I need to be able to send the customer’s user id to the success page because the code in the success page takes the user id and assigns the user to a forum user group. Is there an alternate way to be able to pass the customer’s user id when he purchases a custom capability?

Posted: Friday Apr 6th, 2012 at 12:53 am #10226

Jason,

I don’t think that thread applies. I am building my success url like the example in the “Authorize.net Pro Forms -> Custom Return Urls Upon Success” section of the s2member settings. Here is what the documentation says to do:

s2Member Pro opens the door for Custom Return URLs upon success. You can add a special attribute to any Form Shortcode ( success=”/my-thank-you-page/” ). This makes it possible to integrate Authorize.Net® Pro Forms in very creative ways; and even receive/verify Replacement Code variables, as needed. For example, ( success=”/my-thank-you-page/?subscr_id=%%subscr_id%%” ).

My success url code is:

success="chiccritiqueforum.com/congratulations/?userid=%%user_id%%&group=56"

It has always worked in the past, and seems to be exactly like your documentation. Do you see something wrong with it? Can you think of a different way to get the user id?

Posted: Thursday Apr 5th, 2012 at 11:03 pm #10224

I’ve isolated the problem. It doesn’t work if I use %%user_id%% in the success url. However, everything works fine is I hardcode a user id. I am using the latest version of the plugin Exec-PHP. The code works fine on my other server (using the same versions of s2member and Exec-PHP). Here is the code that DOES NOT work:

[s2Member-Pro-AuthNet-Form level="*" ccaps="Test74Class" desc="Test custom capability" cc="USD" custom="chiccritiqueforum.com" ra="0.01" rp="1" rt="L" rr="BN" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="0" success="http://chiccritiqueforum.com/congratulations/?userid=%%user_id%%&group=74" /]

Here is the code that DOES work:

[s2Member-Pro-AuthNet-Form level="*" ccaps="Test74Class" desc="Test custom capability" cc="USD" custom="chiccritiqueforum.com" ra="0.01" rp="1" rt="L" rr="BN" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="0" success="http://chiccritiqueforum.com/congratulations/?userid=31&group=74" /]

The only difference is the %%user_id%% vs the hardcoded number. Is it possible the % sign is the problem? I will post log files, etc if necessary, but I hate to muddy the waters when the problem is so isolated at this point.

Posted: Thursday Apr 5th, 2012 at 11:39 am #10161

We never had a problem before the upgrade and server switch, and I’m not ok with keeping “a close eye on registrations.” Updating manually is not an option with the volume we do, and currently the custom capabilities are not ever being added.

I had InMotionHosting downgrade my php to 5.2.17. It is still not working. Please advise ASAP.

Posted: Wednesday Apr 4th, 2012 at 4:53 pm #10095

I don’t know the server specifics – I went from a shared hosting account on GoDaddy to a VPS with InMotionHosting. I could find out more specifics about the server if I knew exactly what to ask InMotionHosting for. Here is the log file info. Following the log file I’ve included the code I am using on the buy now page, and then the code on the success page. (The success page does not come up after I complete the purchase – I just get the default page asking me to login again. I get a confirmation email from Authorize.net confirming my purchase, but I do not get the customer confirmation email that I customized through the s2hacks.php file, and I don’t get the payment email that I used to get everytime someone registered for a class).

Log File for test transaction

PHP v5.3.10 :: WordPress® v3.3.1 :: s2Member® v120309 :: s2Member® Pro v120309
Memory 34.28 MB :: Real Memory 35.00 MB :: Peak Memory 34.74 MB :: Real Peak Memory 35.00 MB
chiccritiqueforum.com/test-class
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.142 Safari/535.19
——– Input vars: ( Wed Apr 4, 2012 7:43:36 pm UTC ) ——–
array (
‘x_type’ => ‘AUTH_CAPTURE’,
‘x_method’ => ‘CC’,
‘x_email’ => ‘lisamllewellyn@yahoo.com’,
‘x_first_name’ => ‘lisa’,
‘x_last_name’ => ‘llewellyn’,
‘x_customer_ip’ => ‘67.182.205.198’,
‘x_invoice_num’ => ‘s2-4f7ca468b4150’,
‘x_description’ => ‘Test custom capability’,
‘s2_invoice’ => ‘*:testclass’,
‘s2_custom’ => ‘chiccritiqueforum.com|86|/chiccritiqueforum.com/forum’,
‘x_tax’ => ‘0.00’,
‘x_amount’ => ‘0.01’,
‘x_card_num’ => ‘************6053’,
‘x_exp_date’ => ‘2013-06’,
‘x_card_code’ => ‘847’,
‘x_address’ => ‘680 E 150 S’,
‘x_city’ => ‘Hyde Park’,
‘x_state’ => ‘Utah’,
‘x_country’ => ‘US’,
‘x_zip’ => ‘84318’,
‘x_version’ => ‘3.1’,
‘x_login’ => ‘2ySVeDn87s’,
‘x_tran_key’ => ‘2QJv7F6s87vyp238’,
‘x_delim_data’ => ‘true’,
‘x_delim_char’ => ‘,’,
‘x_encap_char’ => ‘”‘,
)
——– Output string/vars: ( Wed Apr 4, 2012 7:43:38 pm UTC ) ——–
“1”,”1″,”1″,”This transaction has been approved.”,”71676P”,”Y”,”4289450321″,”s2-4f7ca468b4150″,”Test custom capability”,”0.01″,”CC”,”auth_capture”,””,”lisa”,”xxx”,””,”xxx”,”xxx”,”xxx”,”84318″,”US”,””,””,”xxx”,””,””,””,””,””,””,””,””,”0.00″,””,””,””,””,”2B6B29F862C416694CB05B854FA9B58C”,”M”,””,””,””,””,””,””,””,””,””,””,””,”XXXXXX53″,”MasterCard”,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,”*:testclass”,”chiccritiqueforum.com|86|/chiccritiqueforum.com/forum”
array (
0 => ‘1’,
1 => ‘1’,
2 => ‘1’,
3 => ‘This transaction has been approved.’,
4 => ‘71676P’,
5 => ‘Y’,
6 => ‘4289450321’,
7 => ‘s2-4f7ca468b4150’,
8 => ‘Test custom capability’,
9 => ‘0.01’,
10 => ‘CC’,
11 => ‘auth_capture’,
12 => ”,
13 => ‘xxx’,
14 => ‘xxx’,
15 => ”,
16 => ‘680 xxx’,
17 => ‘xxx’,
18 => ‘Utah’,
19 => ‘84318’,
20 => ‘US’,
21 => ”,
22 => ”,
23 => ‘xxx’,
24 => ”,
25 => ”,
26 => ”,
27 => ”,
28 => ”,
29 => ”,
30 => ”,
31 => ”,
32 => ‘0.00’,
33 => ”,
34 => ”,
35 => ”,
36 => ”,
37 => ‘2B6B29F862C416694CB05B854FA9B58C’,
38 => ‘M’,
39 => ”,
40 => ”,
41 => ”,
42 => ”,
43 => ”,
44 => ”,
45 => ”,
46 => ”,
47 => ”,
48 => ”,
49 => ”,
50 => ‘XXXXXX53’,
51 => ‘MasterCard’,
52 => ”,
53 => ”,
54 => ”,
55 => ”,
56 => ”,
57 => ”,
58 => ”,
59 => ”,
60 => ”,
61 => ”,
62 => ”,
63 => ”,
64 => ”,
65 => ”,
66 => ”,
67 => ”,
68 => ‘*:testclass’,
69 => ‘chiccritiqueforum.com|86|/chiccritiqueforum.com/forum’,
‘response_code’ => ‘1’,
‘response_subcode’ => ‘1’,
‘response_reason_code’ => ‘1’,
‘response_reason_text’ => ‘This transaction has been approved.’,
‘authorization_code’ => ‘71676P’,
‘avs_response’ => ‘Y’,
‘transaction_id’ => ‘4289450321’,
‘invoice_number’ => ‘s2-4f7ca468b4150’,
‘description’ => ‘Test custom capability’,
‘amount’ => ‘0.01’,
‘method’ => ‘CC’,
‘transaction_type’ => ‘auth_capture’,
‘customer_id’ => ”,
‘first_name’ => ‘lisa’,
‘last_name’ => ‘xxx’,
‘company’ => ”,
‘address’ => ‘680xxx’,
‘city’ => ‘Hyde Park’,
‘state’ => ‘Utah’,
‘zipcode’ => ‘84318’,
‘country’ => ‘US’,
‘phone’ => ”,
‘fax’ => ”,
’email’ => ‘lisamllewellyn@yahoo.com’,
‘ship_to_first_name’ => ”,
‘ship_to_last_name’ => ”,
‘ship_to_company’ => ”,
‘ship_to_address’ => ”,
‘ship_to_city’ => ”,
‘ship_to_state’ => ”,
‘ship_to_zipcode’ => ”,
‘ship_to_country’ => ”,
‘tax’ => ‘0.00’,
‘duty’ => ”,
‘freight’ => ”,
‘tax_exempt’ => ”,
‘po_number’ => ”,
‘md5_hash’ => ‘2B6B29F862C416694CB05B854FA9B58C’,
‘card_code_response’ => ‘M’,
‘cavv_response’ => ”,
‘card_number’ => ”,
‘card_type’ => ”,
‘split_tender_id’ => ”,
‘requested_amount’ => ”,
‘balance_on_card’ => ”,
)

Buy Now page code:

[s2Member-Pro-AuthNet-Form level="*" ccaps="TestClass" desc="Test custom capability" cc="USD" custom="chiccritiqueforum.com" ra="0.01" rp="1" rt="L" rr="BN" accept="visa,mastercard,amex,discover" coupon="" accept_coupons="0" default_country_code="US" captcha="0" custom="chiccritiqueforum.com|86|/chiccritiqueforum.com/forum" success="http://chiccritiqueforum.com/congratulations?userid=%%user_id%%&group=%%cv1%%&forumlink=%%cv2%%"  /]

Code for http://chiccritiqueforum.com/congratulations – which uses a function from Simple Press to automatically add users to forum usergroups

<?php 
sp_forum_ahah_support();

$usergroup_id=$_REQUEST['group']; 

$user_id=$_REQUEST['userid']; 

sp_add_membership($usergroup_id, $user_id); 

?>

Hey Chica!
Thank you for joining our Celebrity Photographer's 4-week Critique. You will be added to your photographer's private classroom in the forum about 48 hours before your critique begins. You may need to logout and login again in order to see the posts.
Viewing 9 replies - 1 through 9 (of 9 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.