Statistics: Posted by Raam Dev — January 26th, 2012, 1:06 pm
<?php
$amount = $_REQUEST["amount"];
do_shortcode('[s2Member-PayPal-Button ... ra="$amount" ... /]');
');
?>
Statistics: Posted by angelazou — January 26th, 2012, 12:47 am
Statistics: Posted by Jason Caldwell — September 6th, 2011, 2:57 pm
<?php
add_filter ("ws_plugin__s2member_pro_paypal_checkout_post_attr", "my_paypal_pro_checkout_form_attr");
function my_paypal_pro_checkout_form_attr ($attr = array ())
{
if ($_POST["something-custom"] === "some custom value")
{
$attr["ra"] = "10.00"; /* Adjust price dynamically. */
/* And/or, you could adjust other Attributes too. */
/* $attr["rp"], $attr["rt"], etc, etc. */
}
/**/
return (array)$attr;
}
?>
<?php
add_filter ("ws_plugin__s2member_pro_paypal_sp_checkout_post_attr", "my_paypal_pro_sp_checkout_form_attr");
function my_paypal_pro_sp_checkout_form_attr ($attr = array ())
{
if ($_POST["something-custom"] === "some custom value")
{
$attr["ra"] = "10.00"; /* Adjust price dynamically. */
/* And/or, you could adjust other Attributes too. */
/* $attr["ids"], $attr["exp"], etc, etc. */
}
/**/
return (array)$attr;
}
?>
Statistics: Posted by Jason Caldwell — May 18th, 2011, 2:59 am
http://www.YOURSITE.com/membership-options-page/?amount=129.00
[s2Member-PayPal-Button ... ra="<?php echo esc_attr($_REQUEST["amount"]); ?>" ... /]
Statistics: Posted by Jason Caldwell — January 13th, 2011, 4:17 am