If I read the manual, there is an 'options' parameter you can use. Read the manual for more information (I can't test this for you, I don't have an install), but it will look something like this
$paymentmethod = shopp('purchase', 'paymethod', array('return'=>true));
You should play around a bit, because it is not completely clear how this works. There is also the 'echo' option, which does the reverse of the return option (I think), but the manual says it does so on false
. That would be strange.
return: when set to true, 1, or on, this option forces the tag to return the value instead of displaying/echoing the value to the page. Alternatively, prefix the tag parameter with get to get the same effect. All theme api tags that return a boolean value will return by default.
echo: when set to false, 0, or off, this option forces the tag to display the value to the page. This is the default for all non-boolean tags.
You might need to provide the 'echo' paramter as wel. But some combination of these should work :)