$attr["success"] = preg_replace ("/(&|&)/", "&", $attr["success"]); /* Convert ampersands. */
Statistics: Posted by Jason Caldwell — May 7th, 2011, 12:49 pm
function paypal_s2p_v_generate wrote:
This function adds the s2p-v variable onto the end of a custom URL for success. This can be used for verifying the integrity of variables in a success query string.
Statistics: Posted by Cristián Lávaque — May 7th, 2011, 12:44 am
add_filter('the_content', 'fix_ampersands');
function fix_ampersands($content) {
$content = str_replace('#038;' , '' , $content);
return $content;
}
Statistics: Posted by toddz88 — May 7th, 2011, 12:26 am
success="thank-you/?subscr_id=%%subscr_id%%&item_name=%%item_name%%®ular=%%regular%%&recurring=%%recurring%%&initial_term=%%initial_term%%®ular_term=%%regular_term%%&full_name=%%full_name%%"
https://www.mysite.com/signup/thank-you/?subscr_id=I-00JAFFJFJT1N&s2p-v=1304711482-cf65722cd2a942183f328a64c53fa1b6#038;item_name=Individual+membership%3A+%241+USD+%2F+Month+%28+recurring+charge%2C+for+ongoing+access+%29&regular=1.00&recurring=1.00&initial_term=7+D&regular_term=1+M&full_name=Brian+Westbrook
$thanks['subscr_id'] = htmlentities($_GET['subscr_id']);
$thanks['item_name'] = htmlentities($_GET['item_name']);
<p>Subscription ID, subscr_id: <?php echo $thanks['subscr_id']; ?></p>
<p>item_name: <?php echo $thanks['item_name']; ?></p>
[_GET] => Array
(
[subscr_id] => I-00JAFFJFJT1N
[s2p-v] => 1304711482-cf65722cd2a942183f328a64c53fa1b6
)
[thanks] => Array
(
[subscr_id] => I-00JAFFJFJT1N
[item_name] =>
[regular] =>
[recurring] =>
[initial_term] =>
[regular_term] =>
[full_name] =>
)
Statistics: Posted by toddz88 — May 6th, 2011, 3:55 pm