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.

PayPal Sandbox and Mod not working

Home Forums Community Forum PayPal Sandbox and Mod not working

This topic contains 1 reply, has 2 voices. Last updated by  Cristián Lávaque 4 years, 4 months ago.

Topic Author Topic
Posted: Saturday Sep 8th, 2012 at 2:00 pm #24653

Hello,

I am creating a mod which I want to run when a user becomes a full active member. However I am having an issue which is that it doesn’t seem to be running and I am not sure if it’s because of the sandbox mode or what.

But I create a php called /wp-content/mu-plugins/s2-hacks.php

This is what I have so far, just to test it:

add_action("ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars", "add_after_s2");
function add_after_s2($vars = array()) {
	$out = var_export($vars, true);
	file_put_contents(dirname(__FILE__).DIRECTORY_SEPARATOR.'export.txt', $out);
}

So if I signup, pay through PayPal (Sand boxed), this never runs.

Just to make sure it works I included this file in the root, commented out the add_action and ran the function and it created the export. So the code is sound.

This is a new site so maybe I am missing something with PayPal? Is there something else I need to do to get the IPN working? Or the mod?

Thanks

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Sep 10th, 2012 at 7:16 am #24729

Hi Thomas.

I’m not sure if it’s because of the Sandbox. You can do a live 1 cent transaction to test outside the Sandbox, though.

Let me know how it goes. :)

Viewing 1 replies (of 1 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.