What about if you have different paypal buttons? i.e. buttons with different payment amounts.
I thought that perhaps the following code would work, but it didn't. :(
function Content() {
return str_replace('$PayPal1', $this->PayPal1(), $this->Content);
return str_replace('$PayPal2', $this->PayPal2(), $this->Content);
}
function PayPal1() {
return 'replace me with paypal form html here!';
}
function PayPal2() {
return 'replace me with paypal form html here!';
}
Any thoughts?