PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

PayPal button image error

s2Member Plugin. A Membership plugin for WordPress®.

PayPal button image error

Postby Brian Hatano » July 27th, 2010, 12:16 am

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!
User avatar
Brian Hatano
Registered User
Registered User
 
Posts: 20
Joined: May 11, 2010

Re: PayPal button image error

Postby Brian Hatano » July 27th, 2010, 12:16 am

Also, what's the best way to center the image on a page?
User avatar
Brian Hatano
Registered User
Registered User
 
Posts: 20
Joined: May 11, 2010

Re: PayPal button image error

Postby Jason Caldwell » August 5th, 2010, 6:19 pm

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.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: PayPal button image error

Postby Jason Caldwell » August 5th, 2010, 6:20 pm

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>
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 13 guests

cron