I followed the instructions from here http://www.primothemes.com/forums/viewtopic.php?f=4&t=6172
I used Cristian’s version below
add_action('ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts', 'my_dynamic_price', 10);
function my_dynamic_price($vars)
{
$_GET['qty'] = isset($_GET['qty']) && is_numeric($_GET['qty']) && $_GET['qty'] > 1 ? (int) $_GET['qty'] : 1;
$vars['__refs']['attr']['ra'] *= $_GET['qty'];
$vars['__refs']['attr']['desc'] = strtr($vars['__refs']['attr']['desc'], array('%%My-Qty%%' => $_GET['qty'], '%%My-Price%%' => $vars['__refs']['attr']['ra']));
}
it calculates correctly the price and displays it on the description but I get this error
“Invalid form configuration. Missing “ra” attribute. The Regular Amount. Must be >= 0.01.”