Page 1 of 1

PayPal button image error

PostPosted: July 27th, 2010, 12:16 am
by Brian Hatano
Newbie coder here:

When using the long code for the S2Member PayPal button, I get an extra 2 of the following:

-->
-->


I don't see a problem with the code, and when I play around to remove them, I end up changing the info sent to PayPal...

Any ideas?

Here is the whole code, with privacy protected:

Code: Select all
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="accounts@....com" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<!-- Instant Payment Notification & Return Page Details -->
<input type="hidden" name="notify_url" value="http://....com/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value=http://....com" />
<input type="hidden" name="return" value="http://....com/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields -->
<input type="hidden" name="no_shipping" value="1" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="custom" value="http://....com" />
<input type="hidden" name="currency_code" value="GBP" />
<input type="hidden" name="page_style" value="Primary" />
<input type="hidden" name="item_name" value="Membership" />
<input type="hidden" name="item_number" value="2" />
<!-- Identifies/Updates An Existing Member After Checkout -->
<input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
<input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
<input type="hidden" name="modify" value="0" />
<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="25" />-->
<input type="hidden" name="src" value="0" />
<input type="hidden" name="sra" value="1" />
<!--<input type="hidden" name="a1" value="0.00" />-->
<!--<input type="hidden" name="p1" value="0" />-->
<!--<input type="hidden" name="t1" value="D" />-->
<input type="hidden" name="a3" value="25" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="Y" />
<!-- Displays The PayPal® Image Button -->
<input type="image" alt="PayPal®" style="border:0;" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" />
</form>


Thanks for the help!

Re: PayPal button image error

PostPosted: July 27th, 2010, 12:16 am
by Brian Hatano
Also, what's the best way to center the image on a page?

Re: PayPal button image error

PostPosted: August 5th, 2010, 6:19 pm
by Jason Caldwell
I just ran your Button Code through a test installation, and everything came out fine. So it sounds like there is something in your WordPress theme, or possibly a conflict with the Visual Editor that is causing this. You might give this plugin a shot RAW HTML ( http://wordpress.org/extend/plugins/raw-html/ ).

If the Full Button Code continues to give you trouble, you might try adding it into a theme file directly. If none of that works for you, you may have to revert back to using the Shortcode format supplied by s2Member.

Re: PayPal button image error

PostPosted: August 5th, 2010, 6:20 pm
by Jason Caldwell
Brian Hatano wrote:Also, what's the best way to center the image on a page?

You can do something like this:
Code: Select all
<div style="text-align:center;">
[ Your Button Code ]
</div>