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.

Different Confirmation mails

Home Forums Community Forum Different Confirmation mails

This topic contains 8 replies, has 2 voices. Last updated by  Bruce 3 years, 5 months ago.

Topic Author Topic
Posted: Friday Jul 26th, 2013 at 7:39 am #54137

I have been using s2member pro, I am using two membership levels: Level-0 and Level-1, for purchasing Level-1 membership there are two options:
– Membership with additional content
– Membership without additional content

Price is different for both.
I want to have different conformation mails for the two options.
I’m using Authnet Pro form.

List Of Topic Replies

Viewing 8 replies - 1 through 8 (of 8 total)
Author Replies
Author Replies
Posted: Saturday Jul 27th, 2013 at 4:16 am #54204
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

This is possible now, with the addition of the ability to use PHP code in the email fields within s2Member. If you put the following into the email field that you’d like to work with, you can see all of the variables available for you when you create a new User, or do a test payment (depending on which email you’re working with):

<?php print_r(get_defined_vars()); ?>

Once you know what you have, you can use a lot of the examples from this section of your Dashboard to accomplish what you want:

Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals

Posted: Monday Jul 29th, 2013 at 3:19 am #54324

Thank you for your reply

I used the code you said and got the problem worked out on paypal pro forms.

Posted: Monday Jul 29th, 2013 at 8:05 am #54335

Hi

I had another doubt, the code I’m using for differentiation is $paypal[“mc_gross”], can I use it in Auth.net forms for sending different mails based on ‘mc_gross’, if not, what is the solution for sending different mails using Auth.net forms.

Posted: Tuesday Jul 30th, 2013 at 12:47 am #54370
Bruce
Username: Bruce
Staff Member

I had another doubt, the code I’m using for differentiation is $paypal[“mc_gross”], can I use it in Auth.net forms for sending different mails based on ‘mc_gross’, if not, what is the solution for sending different mails using Auth.net forms.

All of the variables from Authorize.Net are passed as PayPal variables and go through the central PayPal IPN Processor when a request comes in. So this variable should still work for you. That being said, I can’t tell you for sure. Sorry. The best to know for sure is to test it. I currently don’t have any way to do this myself, or I would.

Posted: Tuesday Jul 30th, 2013 at 2:44 am #54381

Hi
I’m not getting a confirmation mail when testing through auth.net pro forms, url is:
http://askroxi.com/test-1

Is it that I’m testing it with test details, or is there any problem.

Posted: Tuesday Jul 30th, 2013 at 3:21 am #54382
Bruce
Username: Bruce
Staff Member

I’m not getting a confirmation mail when testing through auth.net pro forms,

Do you have logging enabled?

If you’re not getting any emails, then that probably means that your Authorize.Net IPN integration is broken. If you don’t have logging enabled, enable it and run another test transaction. Then check this section of your Dashboard:

Dashboard -› s2Member® -› Log Files (Debug) -› Logging Configuration

Is there an authnet-ipn.log file generated? If so, does s2Member say that there’s something wrong with the information?

Posted: Tuesday Jul 30th, 2013 at 4:51 am #54385

If you’re not getting any emails, then that probably means that your Authorize.Net IPN integration is broken.

How can I check Authorize.Net IPN?

I have enabled logging, following is the authnet-ipn.log file generated:

LOG ENTRY: Tue Jul 30th, 2013 @ precisely 5:25 am UTC
PHP v5.3.26 :: WordPress® v3.5.1 :: s2Member® v130617 :: s2Member® Pro v130617
Memory 48.32 MB :: Real Memory 49.00 MB :: Peak Memory 48.62 MB :: Real Peak Memory 49.00 MB
askroxi.com/test-1/
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36
——– Input vars: ( Tue Jul 30, 2013 5:25:25 am UTC ) ——–
array (
‘x_type’ => ‘AUTH_CAPTURE’,
‘x_method’ => ‘CC’,
‘x_email’ => ‘xxxxxxx@yahoo.com’,
‘x_first_name’ => ‘xxxxx’,
‘x_last_name’ => ‘b’,
‘x_customer_ip’ => ‘103.5.115.4’,
‘x_invoice_num’ => ‘s2-51f74e45e03d0’,
‘x_description’ => ‘$0.01 USD / One Time (for lifetime access, non-recurring, no trial)’,
‘s2_invoice’ => ‘1’,
‘s2_custom’ => ‘xxxxxx.com’,
‘x_tax’ => ‘0.00’,
‘x_amount’ => ‘0.01’,
‘x_currency_code’ => ‘USD’,
‘x_card_num’ => ‘*********0027’,
‘x_exp_date’ => ‘2013-07’,
‘x_card_code’ => ‘123’,
‘x_address’ => ‘asda’,
‘x_city’ => ‘sdf’,
‘x_state’ => ‘sf’,
‘x_country’ => ‘US’,
‘x_zip’ => ‘50169’,
‘x_version’ => ‘3.1’,
‘x_login’ => ‘xxxxxxxx/key/tran’,
‘x_tran_key’ => ‘xxxxxxxx/key/tran’,
‘x_delim_data’ => ‘true’,
‘x_delim_char’ => ‘,’,
‘x_encap_char’ => ‘”‘,
‘x_relay_response’ => ‘false’,
)
——– Output string/vars: ( Tue Jul 30, 2013 5:25:26 am UTC ) ——–
“1”,”1″,”1″,”(TESTMODE) This transaction has been approved.”,”000000″,”P”,”0″,”s2-51f74e45e03d0″,”$0.01 USD / One Time (for lifetime access, non-recurring, no trial)”,”0.01″,”CC”,”auth_capture”,””,”ganesh”,”b”,””,”asda”,”sdf”,”sf”,”50169″,”US”,””,””,”ganeswararao_vinutnaa@yahoo.com”,””,””,””,””,””,””,””,””,”0.00″,””,””,””,””,”3FBDC3CA92C8BD3D87647110C1D2D12F”,””,””,””,””,””,””,””,””,””,””,””,””,”XXXX0027″,”Visa”,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,””,”1″,”askroxi.com”
array (
0 => ‘1’,
1 => ‘1’,
2 => ‘1’,
3 => ‘(TESTMODE) This transaction has been approved.’,
4 => ‘000000’,
5 => ‘P’,
6 => ‘0’,
7 => ‘s2-51f74e45e03d0’,
8 => ‘$0.01 USD / One Time (for lifetime access, non-recurring, no trial)’,
9 => ‘0.01’,
10 => ‘CC’,
11 => ‘auth_capture’,
12 => ”,
13 => ‘xxxxxxx’,
14 => ‘b’,
15 => ”,
16 => ‘asda’,
17 => ‘sdf’,
18 => ‘sf’,
19 => ‘50169’,
20 => ‘US’,
21 => ”,
22 => ”,
23 => ‘xxxxxxxxx@yahoo.com’,
24 => ”,
25 => ”,
26 => ”,
27 => ”,
28 => ”,
29 => ”,
30 => ”,
31 => ”,
32 => ‘0.00’,
33 => ”,
34 => ”,
35 => ”,
36 => ”,
37 => ‘3FBDC3CA92C8BD3D87647110C1D2D12F’,
38 => ”,
39 => ”,
40 => ”,
41 => ”,
42 => ”,
43 => ”,
44 => ”,
45 => ”,
46 => ”,
47 => ”,
48 => ”,
49 => ”,
50 => ‘XXXX0027’,
51 => ‘Visa’,
52 => ”,
53 => ”,
54 => ”,
55 => ”,
56 => ”,
57 => ”,
58 => ”,
59 => ”,
60 => ”,
61 => ”,
62 => ”,
63 => ”,
64 => ”,
65 => ”,
66 => ”,
67 => ”,
68 => ‘1’,
69 => ‘xxxxxx.com’,
‘response_code’ => ‘1’,
‘response_subcode’ => ‘1’,
‘response_reason_code’ => ‘1’,
‘response_reason_text’ => ‘(TESTMODE) This transaction has been approved.’,
‘authorization_code’ => ‘000000’,
‘avs_response’ => ‘P’,
‘transaction_id’ => ‘0’,
‘invoice_number’ => ‘s2-51f74e45e03d0’,
‘description’ => ‘$0.01 USD / One Time (for lifetime access, non-recurring, no trial)’,
‘amount’ => ‘0.01’,
‘method’ => ‘CC’,
‘transaction_type’ => ‘auth_capture’,
‘customer_id’ => ”,
‘first_name’ => ‘ganesh’,
‘last_name’ => ‘b’,
‘company’ => ”,
‘address’ => ‘asda’,
‘city’ => ‘sdf’,
‘state’ => ‘sf’,
‘zipcode’ => ‘50169’,
‘country’ => ‘US’,
‘phone’ => ”,
‘fax’ => ”,
’email’ => ‘xxxxxxxxx@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’ => ‘3FBDC3CA92C8BD3D87647110C1D2D12F’,
‘card_code_response’ => ”,
‘cavv_response’ => ”,
‘card_number’ => ”,
‘card_type’ => ”,
‘split_tender_id’ => ”,
‘requested_amount’ => ”,
‘balance_on_card’ => ”,
)

Posted: Tuesday Jul 30th, 2013 at 1:02 pm #54400
Bruce
Username: Bruce
Staff Member

How can I check Authorize.Net IPN?

I have enabled logging, following is the authnet-ipn.log file generated:

It doesn’t look like we have all the info here. Would you mind sending us access to all of your files so we can take a look?

You can do that here: s2Member® » Private Contact Form

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

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

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.