button values not feeding to PayPal
Posted: October 27th, 2010, 8:10 pm
As a test, I copied the PayPal button code shown in the s2 button editor for level 1 and pasted it into a page. Then I looked at the page by clicking on the preview button.
The first item I noted was that the beginning and ending brackets from the amount field that was commented out were modified by something on my site, leaving the brackets and a line break. I don't know if this was done by a plugin or Wordpress.
Here is the before ...
Here is the after ...
In addition, I received an error message from PayPal that said ...
But, the code in the button was ...
By deleting these three lines and removing the commented "amount" line, the button did take me to PayPal.
I then cut and pasted the button shortcode into the same page and it worked properly.
So, from this I learned that the button code does not work directly in a page.
But, I need to add %cv's% to the CUSTOM field.
First, why doesn't the raw button code work, second, how do I get my CV code into the CUSTOM field, and third, would the button code, modified as I describe, work with s2?
Cheers and felicitations!
The first item I noted was that the beginning and ending brackets from the amount field that was commented out were modified by something on my site, leaving the brackets and a line break. I don't know if this was done by a plugin or Wordpress.
Here is the before ...
- Code: Select all
<!-- <input type="hidden" name="amount" value="0.01" /> -->
Here is the after ...
- Code: Select all
<br />
<!--<br />
<input type="hidden" name="amount" value="0.01" /> –></p>
In addition, I received an error message from PayPal that said ...
Invalid first trial period. You must specify valid values for the A1, P1, and T1 parameters for a subscription.
But, the code in the button was ...
- Code: Select all
<input type="hidden" name="a1" value="0.00" />
<input type="hidden" name="p1" value="0" />
<input type="hidden" name="t1" value="D" />
By deleting these three lines and removing the commented "amount" line, the button did take me to PayPal.
I then cut and pasted the button shortcode into the same page and it worked properly.
So, from this I learned that the button code does not work directly in a page.
But, I need to add %cv's% to the CUSTOM field.
First, why doesn't the raw button code work, second, how do I get my CV code into the CUSTOM field, and third, would the button code, modified as I describe, work with s2?
Cheers and felicitations!