|
Thanks. I’ve been recommended amember.com to handle these modules and it seems to also offer this as well as a membership system which is exactly what i need. Was hoping for an easier solution and feel that s2member really should offer this in an easy to use manner. Because my visitors really are members and just need to choose different service packages depending on their product.
|
|
OK this was solved using the notification URL
Dashboard -> s2member -> API notifications -> Payment Nofications
|
|
Hi,
Had the same problem. Hope this linkhelps. You can put the link code directly into the
S2member General Options > Custom Registration/Profile Fields > Field Label/Desc:
|
|
Thanks, it’s working well now
|
|
Hi, found that debug mode was on (in wp-config.php). Setting this to false suppresses the errors and the javascript works. Thanks…
|
|
Sorry, the issue I’m having with s2member-o.php is the javascript plugin
<script type='text/javascript' src='http://mysite.co.za/wp-content/plugins/s2member/s2member-o.php?ws_plugin__s2member_js_w_globals=9614cb4440074464239bd7cf47012&qcABC=1&ver=130221-130221-4113923320'></script>
It spews out Warnings and Notices before the javascript starts – (function(a){if(typeof a.spr etc.
This is causing a syntax error according to firebug and the javascript is not being executed. The pro form is therefore not automatically filled in and not activated.
|
|
Yes pro forms. Not using more than one.
|
|
Nope I re-installed but no luck. I also tried switching themes. I’m getting the following prefixed to my s2member-o.php code which is causeing the syntax error:
<br />
<b>Notice</b>: Constant WP_MEMORY_LIMIT already defined in <b>/home/salearne/public_html/wp-config.php</b> on line <b>80</b><br />
<br />
<b>Notice</b>: Undefined variable: cache_needs_updating in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/cache.inc.php</b> on line <b>94</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>89</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>90</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>91</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>92</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /home/salearne/public_html/wp-config.php:80) in <b>/home/salearne/public_html/wp-content/plugins/s2member/includes/classes/css-js-in.inc.php</b> on line <b>93</b><br />
Thanks,
|
|
I should have looked at http://www.s2member.com/kb/common-troubleshooting-tips/ for reinstall. Will see if that solves problem.
|
|
Hi, thanks for this it works well. I had to use
$('#s2member-pro-paypal-checkout-form')
//instead of
$('#s2member-pro-paypal-registration-form')
|
|
No upgrade email. Two emails, 1 with username and password and the other like this:
Thanks Sam66! Your membership has been approved.
$2.63 USD / One Time ( for 1 month access, non-recurring )
Subscr. ID: 3UX94994VD5181738
Charges today: $0.10
Recurring charges: $0 / non-recurring
Your Username/Password will arrive shortly, in a separate email. If you have any trouble, please feel free to contact us.
Best Regards,
SA Learners License
The form results in a successful registration and also provides a “Paid Subscr. ID” to confirm purchase but does not elevate the role of the user from “Subscriber”.
|
|
Just made a test payment/registration. Here’s the last 3 from paypal-rtn:
PHP v5.3.18 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 40.01 MB :: Real Memory 40.25 MB :: Peak Memory 40.24 MB :: Real Peak Memory 40.50 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
'subscr_gateway' => 'paypal',
's2member_log' =>
array (
0 => 'No Return-Data. Customer must wait for Email Confirmation.',
1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
2 => 'Note. This can sometimes happen when/if you are offering a free Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Member must process the transaction via IPN only ( i.e. behind-the-scene ), and the Customer must wait for Email Confirmation in these cases.',
3 => 'array (
\'s2member_paypal_return\' => \'1\',
)',
),
)
PHP v5.3.18 :: WordPress® v3.4.2 :: s2Member® v121023 :: s2Member® Pro v121023
Memory 40.39 MB :: Real Memory 40.75 MB :: Peak Memory 40.71 MB :: Real Peak Memory 40.75 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
'subscr_gateway' => 'paypal',
's2member_log' =>
array (
0 => 'No Return-Data. Customer must wait for Email Confirmation.',
1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
2 => 'Note. This can sometimes happen when/if you are offering a free Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Member must process the transaction via IPN only ( i.e. behind-the-scene ), and the Customer must wait for Email Confirmation in these cases.',
3 => 'array (
\'s2member_paypal_return\' => \'1\',
)',
),
)
PHP v5.3.19 :: WordPress® v162 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 52.22 MB :: Real Memory 52.75 MB :: Peak Memory 52.45 MB :: Real Peak Memory 52.75 MB
salearnerslicense.co.za/?s2member_paypal_return=1
User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
array (
'subscr_gateway' => 'paypal',
's2member_log' =>
array (
0 => 'No Return-Data. Customer must wait for Email Confirmation.',
1 => 'Redirecting Customer to the Home Page. Customer must wait for Email Confirmation.',
2 => 'Note. This can sometimes happen when/if you are offering a free Trial Period. There are times when a Payment Gateway will NOT supply s2Member with any data immediately after checkout. When/if this happens, s2Member must process the transaction via IPN only ( i.e. behind-the-scene ), and the Customer must wait for Email Confirmation in these cases.',
3 => 'array (
\'s2member_paypal_return\' => \'1\',
)',
),
)
Thanks,
|
|
Not sure where to find the PDT logs. Are they paypal-rtn or paypal-api?
|
|
No, the IPN url is set in my Paypal account. Here is the IPN log:
PHP v5.3.19 :: WordPress® v114 :: s2Member® v121213 :: s2Member® Pro v121213
Memory 57.76 MB :: Real Memory 58.75 MB :: Peak Memory 58.11 MB :: Real Peak Memory 58.75 MB
salearnerslicense.co.za/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails&s2member_paypal_proxy_verification=e6faea3ef6b120a043c76b59f2da4997&s2member_paypal_proxy_return_url=%2Fthank-you-purchase%2F
User-Agent: WordPress/365; http://salearnerslicense.co.za
array (
'txn_type' => 'web_accept',
'txn_id' => '4FB72799UP171363X',
'custom' => 'salearnerslicense.co.za',
'mc_gross' => '0.10',
'mc_currency' => 'USD',
'tax' => '0.00',
'payer_email' => 'blindlemonsam+65@gmail.com',
'first_name' => 'SamcheckMCAPI',
'last_name' => 'Moore',
'option_name1' => 'Originating Domain',
'option_selection1' => 'salearnerslicense.co.za',
'option_name2' => 'Customer IP Address',
'option_selection2' => '141.101.98.191',
'item_name' => '$2.63 USD / One Time ( for 1 month access, non-recurring )',
'item_number' => '2::1 M',
'proxy_verified' => 'paypal',
's2member_log' =>
array (
0 => 'IPN received on: Sat Dec 22, 2012 3:17:03 pm UTC',
1 => 's2Member POST vars verified with a Proxy Key',
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/o update vars.',
5 => 'Signup Confirmation Email sent to: "SamcheckMCAPI Moore" <blindlemonsam+65@gmail.com>.',
6 => 'Storing Signup Tracking Codes into a Transient Queue. These will be processed on-site.',
7 => 'Subscr. Return ( `modification=0` ), a Proxy Return URL is ready.',
8 => 'User exists. Handling `payment` for Subscription via ( `web_accept` ).',
9 => 'Payment Notification Emails have been processed.',
10 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
),
'subscr_gateway' => 'paypal',
'subscr_id' => '4FB72799UP171363X',
'eotper' => '1 M',
'ccaps' => '',
'level' => '2',
'ip' => '141.101.98.191',
'period1' => '0 D',
'mc_amount1' => '0.00',
'period3' => '1 M',
'mc_amount3' => '0.10',
'initial_term' => '0 D',
'initial' => '0.10',
'regular' => '0.10',
'regular_term' => '1 M',
'recurring' => '0',
's2member_paypal_proxy_return_url' => '/thank-you-purchase/',
's2member_paypal_proxy' => 'paypal',
's2member_paypal_proxy_use' => 'pro-emails',
's2member_paypal_proxy_verification' => 'e6faea3ef6b120a043c76b59f2da4997',
)
|
|
Hi, all fixed. Was a problem with one of the tweaks of WP Better Security plugin.
Thanks
|
|
Hi, thanks for the help. Had to change the get_user_option line by replacing
$cfields = get_user_option('wp_s2member_custom_fields', $user_id);
with
$cfields = get_user_option('wpsal_s2member_custom_fields', $user_id);
The “sal” I added on is specific to our site. Now it works fine :-)
|
|
Hi where do I check the output of print_r? Thanks
|
|
If they’re coming through as null, I recommend double-checking that province and two are actually the names of the Custom Registration Fields.
Could it also be that someone left those fields empty when they submitted the form?
Don’t think so, it’s me filling it out.
Any ideas?
|
|
OK, I deleted and reinstalled all the s2member folders and now it’s working like a charm!
|
|
I did a test install of wordpress in a subfolder and installed s2member-pro with the same Paypal API settings: it worked! It must then be some sort of conflict with customisation/other plugins.
|
|
|
|
I don’t think 3rd party permission is required. It requires a “Third Party Permission Username”. I looked under S2member Paypal > IPN options and it says…
IPN w/ Proxy Key ( optional, for 3rd-party integrations )
I ran the Server check and the only problem it had was a recommendation to increase the WP_MEMORY_LIMIT from 32MB to 64MB.
-
This reply was modified 4 years, 4 months ago by Alex Read.
-
This reply was modified 4 years, 4 months ago by Alex Read.
-
This reply was modified 4 years, 4 months ago by Alex Read.
|
|
Hi, decided to just have the converted amount in brackets and charge USD. I used a wp-content/mu-plugin/ to convert 3USD to ZAR.
<?php
function USD2ZAR ()
{
$conv_rate = c_ws_plugin__s2member_utils_cur::convert("3", "USD", "ZAR");
return $conv_rate;
}
add_shortcode( 'local_ZAR', 'USD2ZAR' );
?>
…and then just put in the shortcode [USD2ZAR] on the page.
Sam
|
|
Still having an issue with paypal express checkout but getting nearer:
1) Go salearnerslicense.co.za/membership-options and select credit card. It detects all fields, but then when you click express checkout it goes to paypal homepage!!
2) Also regarding custom payment integrations am I correct in saying that after the successful payment the external gateway needs to send a notification URL. Currently I have set mine to “http://salearnerslicense.co.za/?s2member_boxpay_notify=1” but that is not working. Under paypal IPN it has settings “http://salearnerslicense.co.za/?s2member_paypal_notify=1&s2member_paypal_proxy=proxy-gateway&s2member_paypal_proxy_verification=.XXX”
So should I rather set notification to:
http://salearnerslicense.co.za/?s2member_boxpay_notify=1 level=”1″ custom=”salearnerslicense.co.za”/]
OR
http://salearnerslicense.co.za/?s2member_paypal_notify=1&s2member_paypal_proxy=boxpay.com&s2member_paypal_proxy_verification=.XXX&level=”1″&custom=”salearnerslicense.co.za”
|
|
Can you check the paypal express checkout on salearnerslicense.co.za/paypal-test/ to see if it’s correct?
|