I am assuming that if we wished to offer any of the other payment gateway options we would create a similar options array to pass through?
Statistics: Posted by Jason Caldwell — March 24th, 2011, 4:06 am
Statistics: Posted by bazchas — March 24th, 2011, 3:18 am
<?php
add_filter ("ws_plugin__s2member_options", "my_dynamic_s2_options", 15);
function my_dynamic_s2_options (&$options = array ())
{
$options["paypal_business"] = "paypal@example.com";
/**/
return $options;
}
?>
<?php
add_filter ("ws_plugin__s2member_options", "my_dynamic_s2_options", 15);
function my_dynamic_s2_options (&$options = array ())
{
$options["paypal_business"] = "paypal@example.com";
$options["paypal_api_username"] = "username";
$options["paypal_api_password"] = "password";
$options["paypal_api_signature"] = "signature";
/**/
return $options;
}
?>
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 10:41 pm
Statistics: Posted by Cristián Lávaque — March 23rd, 2011, 8:53 pm
Statistics: Posted by bazchas — March 23rd, 2011, 11:20 am