Hi!
I'm developing a PayPal button plugin using the following code:
class paypal_button
{
function show( $business='default@mail.com', $item_name='Default item', $amount=1 ) {
$html = '<form action="paypal.com/cgi-bin/…;
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="' . $business . '">
<input type="hidden" name="lc" value="ES">
<input type="hidden" name="charset" value="utf-8">
<input type="hidden" name="item_name" value="' . $item_name . '">
<input type="hidden" name="amount" value="' . $amount . '">
<input type="hidden" name="currency_code" value="EUR">
<input type="image" src="paypalobjects.com/es_ES/ES/i/btn/…;
</form>';
return $html;
}
}
But, for some reason if I call the plugin with no parameters:
<plugin:paypal_button:show />
the $business parameter is empty instead of using the default value.
Any ideas of what might be going on here?