latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Paypal Button Issue

Home Forums Community Forum Paypal Button Issue

This topic contains 11 replies, has 3 voices. Last updated by  Michael Franks 3 years, 9 months ago.

Topic Author Topic
Posted: Friday Jan 18th, 2013 at 11:35 pm #38286

Is there anyway I can get the buttons as shown on this page: http://www.stillmotivated.com/membership-options/
to act like the paypal buttons? I’d really hate to have to put them below. If there is a way to embed them “behind” the get started buttons, that would be great.

The shortcode for that page is the same as the last example demonstrated on: http://themes.mysitemyway.com/infocus/pages/pricing-boxes/

I tried inserting the paypal button shortcode within the pricing boxes shortcode in various places, but with no success.

Would love it if there’s a way to do this!

List Of Topic Replies

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Sunday Jan 20th, 2013 at 9:24 am #38409

Greetings Alex,

The button that is used by default when generating a PayPal Button is just like any other button / image, and so you can change that!

In the short code, you should see an part of the code like this:

[s2Member-PayPal-Button level="1" [...] image="default" /]

You can change that image to any image location on your server, so you could put something like this:

[s2Member-PayPal-Button level="1" [...] image="http://www.example.com/uploads/upgrade.png" /]

This should change your button from the default PayPal button, to whatever you’ve designed upgrade.png (in this example) to be!

Posted: Monday Jan 21st, 2013 at 8:00 pm #38755

Okay so I decided to stick the paypal buttons on a separate page. When users get here: http://www.stillmotivated.com/membership-options/

Any of the three buttons redirect them to this page:
http://www.stillmotivated.com/membership-registration/

However, when they click a paypal button, they get to a paypal page with this error “Invalid Regular period. You must specify valid values for the A3, P3, and T3 parameters for a subscription.”:
https://www.paypal.com/us/cgi-bin/webscr?cmd=_flow&SESSION=xfNxXoLvK1I18bwY8WV6F6PHz6UMJX94zUqdtME2o75hBhakiGBN93zj3Ui&dispatch=5885d80a13c0db1f8e263663d3faee8d0b7e678a25d883d0fa72c947f193f8fd

In addition, on the membership registration page, there is a ton of space between my text and my paypal button, even though I put the shortcode for the button right under the paragraph text in both cases. See my shortcode (which I placed in the text editor) here:
————————

<h1>Free Members:</h1>
<h4>Sign up for free <a href="http://www.stillmotivated.com/wp-login.php?action=register">HERE</a></h4>

<h1>Motivated Member:</h1>
<strong>First 2 Weeks Free!</strong>
(Credit Card Payments Coming Soon)
[s2Member-PayPal-Button level="1" ccaps="" desc="Motivated Member / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.stillmotivated.com" ta="0" tp="2" tt="W" ra="9.95" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

<h1>Motivated Supertar:</h1>
<strong>First 2 Weeks Free!</strong>
(Credit Card Payments Coming Soon)
[s2Member-PayPal-Button level="2" ccaps="" desc="Motivated Superstar / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.stillmotivated.com" ta="0" tp="2" tt="W" ra="24.95" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

—————————————
Hopefully you can help me fix this :/ Thanks!

Posted: Tuesday Jan 22nd, 2013 at 8:36 am #38945

Greetings Alex,

Your issue with the PayPal Payment is likely to be a configuration error. Triple check your PayPal settings, and if the issue persists I’ll be more then happy to test this myself.

Regarding your concern with the gap between the text and the button, I can see that this is in fact due to CSS. Using the Firebug Tool (A plugin for Firefox) I can see that you have padding on both the bottom of the text, and the top of the button. Simply locate where this CSS is coded, and make the changes needed.

Be aware, these may be global CSS components. Changing it may interfere with your entire site. Personally, the gap doesn’t look odd. It is a nice break from the text.

Posted: Tuesday Jan 22nd, 2013 at 12:52 pm #38977

I triple checked everything in the setup. Went through every step again, watched the youtube videos as well just to make sure I was doing it right.

I’ll fix the visual aspect later if I can get the functionality of it fixed.

Any ideas what I should try next?

When I generate the shortcode it says this snippet of code will eventually generate this (or something like this depending on parameters I’m allowed to choose)

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <input type="hidden" name="business" value="alexk@stillmotivated.com" />
 <input type="hidden" name="cmd" value="_xclick-subscriptions" />
 <!-- Instant Payment Notification & Return Page Details -->
 <input type="hidden" name="notify_url" value="http://www.stillmotivated.com/?s2member_paypal_notify=1" />
 <input type="hidden" name="cancel_return" value="http://www.stillmotivated.com/" />
 <input type="hidden" name="return" value="http://www.stillmotivated.com/?s2member_paypal_return=1" />
 <input type="hidden" name="rm" value="2" />
 <!-- Configures Basic Checkout Fields -->
 <input type="hidden" name="lc" value="" />
 <input type="hidden" name="no_shipping" value="1" />
 <input type="hidden" name="no_note" value="1" />
 <input type="hidden" name="custom" value="www.stillmotivated.com" />
 <input type="hidden" name="currency_code" value="USD" />
 <input type="hidden" name="page_style" value="paypal" />
 <input type="hidden" name="charset" value="utf-8" />
 <input type="hidden" name="item_name" value="Motivated Member / description and pricing details here." />
 <input type="hidden" name="item_number" value="1" />
 <!-- Configures s2Member's Unique Invoice ID/Code  -->
 <input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
 <!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
 <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; ?>" />
 <!-- Identifies The Customer's IP Address For Tracking -->
 <input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
 <input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
 <!-- Controls Modify Behavior At PayPal® Checkout -->
 <input type="hidden" name="modify" value="0" />
 <!-- Customizes Prices, Payments & Billing Cycle -->
 <!--<input type="hidden" name="amount" value="9.95" />-->
 <input type="hidden" name="src" value="1" />
 <input type="hidden" name="srt" value="" />
 <input type="hidden" name="sra" value="1" />
 <input type="hidden" name="a1" value="0" />
 <input type="hidden" name="p1" value="14" />
 <input type="hidden" name="t1" value="D" />
 <input type="hidden" name="a3" value="9.95" />
 <input type="hidden" name="p3" value="1" />
 <input type="hidden" name="t3" value="M" />
 <!-- Displays The PayPal® Image Button -->
 <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" style="width:auto; height:auto; border:0;" alt="PayPal®" />
</form>

and though I’m no coding master, it seems clear to me that there are a3 p3 and t3 values in there when buttons are generated.

What’s also ironic is I’m using the same theme that s2member is using / recommended and I’m still having problems haha. Oh well.

Thanks for all your help so far, hopefully we’ll get through this.

Posted: Tuesday Jan 22nd, 2013 at 1:37 pm #38985

Hello,

I’ve tried this myself and I can see exactly what you mean as I get the same error myself. Something is clearly wrong as there are values for A3, P3 & T3.

Could you try using the Shortcode it generates instead of the Form? That should also fix the large gap between the PayPal buttons as well.

  • This reply was modified 3 years, 11 months ago by  Alec Weekes.
Posted: Tuesday Jan 22nd, 2013 at 1:39 pm #38986

Not sure I understand. Do I need to give you access to make changes to the site and play around with it yourself? If so I think I can do that. I just need to go into wordpress and make an account for you I believe.

If that works, lemme know and I’ll go do that.

Posted: Tuesday Jan 22nd, 2013 at 1:48 pm #38990

I’ve edited my original response with stuff to consider. Let me know if this fixes your issue.

Posted: Tuesday Jan 22nd, 2013 at 1:56 pm #38992

Wow! so I found another thread online (through mysitemyway.com which s2member recommends) and it turns out, that despite s2member recommending the theme I’m using from them and using a modified version themselves (inFocus), the two are incompatible for this one part.

Turns out, all you have to do is place this around the button shortcodes

Here’s an example (the part I fixed):

[s2Member-PayPal-Button level="1" ccaps="" desc="Motivated Member / description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.stillmotivated.com" ta="0" tp="14" tt="D" ra="9.95" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

Oh and it fixed my spacing problem! Woohoo!
No need to switch themes and mess with plugins, just do that and your good to go.

Posted: Tuesday Jan 22nd, 2013 at 1:57 pm #38993

Glad you found your solution Alex!

Posted: Tuesday Jan 22nd, 2013 at 1:59 pm #38994

okay not sure why that went through in a weird way. basically just put

open bracket + raw + closed bracket at the start of your short code, followe by open bracket + /raw + closed bracket at the end of your shortocde.

Didn’t display right in the above example for some reason.

Oh and thanks Alec for sticking with me and helping out a ton.

Hope this helps anyone else who comes across this same problem!

Posted: Friday Mar 22nd, 2013 at 12:52 am #45437

This fixed my problem, thanks Alex!

Viewing 11 replies - 1 through 11 (of 11 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.