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 error

s2Member Plugin. A Membership plugin for WordPress®.

PayPal button error

Postby Magicmarker » May 25th, 2011, 11:29 am

I'm new to s2 but I inserted my button and when you click on it you get:

Invalid Regular period. You must specify valid values for the A3, P3, and T3 parameters for a subscription.

I want one yearly subscription for everyone ($12/yr)-no levels and no free access.

http://chicacafe.redwebtestsite.com/
User avatar
Magicmarker
Registered User
Registered User
 
Posts: 41
Joined: April 15, 2011

Re: PayPal button error

Postby Cristián Lávaque » May 25th, 2011, 6:24 pm

Could you post the shortcode you generated for the button?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby Magicmarker » May 25th, 2011, 7:14 pm

I just figured out that I was using the long code instead of the shortcode. When I switched it worked!
User avatar
Magicmarker
Registered User
Registered User
 
Posts: 41
Joined: April 15, 2011

Re: PayPal button error

Postby Cristián Lávaque » May 25th, 2011, 7:56 pm

Great! :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby ktkfo4 » June 28th, 2011, 2:31 am

Just having the same issue but have to use the long code. Same error message from PayPal. Possibly a bug. What should I do?
User avatar
ktkfo4
Registered User
Registered User
 
Posts: 11
Joined: June 12, 2011

Re: PayPal button error

Postby ktkfo4 » June 28th, 2011, 2:59 am

Just solved it. As I never use the WP WYSIWYG-Editor, maybe forward this to Jason to integrate it in the future as this is asked for by WP users over and over again ...

Reason for breaking: The built-in (not deactivatable) WordPress Editor adds paragraphs to the long, commented paypal button code.

I think that the button code comments (<!-- ...) lead to these extra paragraphs that destroy the button in the source code. I removed all comments and now the button works as it should.
User avatar
ktkfo4
Registered User
Registered User
 
Posts: 11
Joined: June 12, 2011

Re: PayPal button error

Postby Cristián Lávaque » June 28th, 2011, 1:37 pm

Thanks for the feedback! I'll let Jason know.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby doctorproctor » June 28th, 2011, 2:22 pm

I have the same error msg when I use shortcode, e.g.

[s2Member-PayPal-Button level="1" ccaps="" desc="Oak Level Member -- $20 per year" ps="paypal" cc="USD" ns="1" custom="aldercreek.org" ta="0" tp="0" tt="D" ra="20" rp="1" rt="Y" rr="1" image="default" output="button" /]

All coded in HTML. Ideas?

Many thanks,

Jim
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: PayPal button error

Postby Cristián Lávaque » June 28th, 2011, 3:34 pm

Jim, what do you mean by "all coded in HTML" if it's a shortcode?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby doctorproctor » June 28th, 2011, 4:21 pm

Sorry: referred to prev post in which WYSIWYG editor was messing it up...it's in shortcode, alright...
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: PayPal button error

Postby Cristián Lávaque » June 28th, 2011, 10:23 pm

Got it. OK, could you show me the page where you're using that shortcode, or at least paste here the HTML the shortcode outputs in that page?
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby doctorproctor » June 29th, 2011, 12:46 am

Yes, below is sample HTML generated from the first shortcode...Jim

Code: Select all
<div class="pane">Participate in Friends of ACCF at the Oak Level ($20/yr): </p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="info@aldercreek.org" />
<input type="hidden" name="cmd" value="_xclick-subscriptions" />
<!-- Instant Payment Notification &#038; Return Page Details --></p>
<input type="hidden" name="notify_url" value="http://aldercreek.org/?s2member_paypal_notify=1" />
<input type="hidden" name="cancel_return" value="http://aldercreek.org/" />
<input type="hidden" name="return" value="http://aldercreek.org/?s2member_paypal_return=1" />
<input type="hidden" name="rm" value="2" />
<!-- Configures All Of The Checkout Fields --></p>
<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="aldercreek.org" />
<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="Oak Level Member -- $20 per year" />
<input type="hidden" name="item_number" value="1" />
<!-- Identifies/Updates An Existing User/Member ( when/if applicable )  --></p>
<input type="hidden" name="on0" value="Originating Domain" />
<input type="hidden" name="os0" value="aldercreek.org" />
<!-- Identifies The Customer's IP Address For Tracking --></p>
<input type="hidden" name="on1" value="Customer IP Address" />
<input type="hidden" name="os1" value="76.105.199.104" />
<!-- Controls Modify Behavior At PayPal® Checkout --></p>
<input type="hidden" name="modify" value="0" />
<!-- Customizes Prices, Payments &#038; Billing Cycle --><br />
<!--<br />
<input type="hidden" name="amount" value="20" />&#8211;></p>
<input type="hidden" name="src" value="1" />
<input type="hidden" name="srt" value="" />
<input type="hidden" name="sra" value="1" />
<!--<br />
<input type="hidden" name="a1" value="0" />&#8211;><br />
<!--<br />
<input type="hidden" name="p1" value="0" />&#8211;><br />
<!--<br />
<input type="hidden" name="t1" value="D" />&#8211;></p>
<input type="hidden" name="a3" value="20" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="Y" />
<!-- Displays The PayPal® Image Button --></p>
<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>
</div>
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011

Re: PayPal button error

Postby Cristián Lávaque » June 29th, 2011, 1:07 am

Thanks! I'll show it to Jason.
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: PayPal button error

Postby Jason Caldwell » June 29th, 2011, 1:29 am

I've seen this happen before. In the cases I've seen before, it has to do with the way some themes remove the default WordPress formatting filters, and then re-apply them on their own, for various reasons ( i.e. in an attempt to improve functionality ). However, in doing so, some themes handle this wrong, and they end up applying formatting filters after Shortcode content ( like PayPal Button Codes ) are already processed. That's very bad, and is usually what causes the type of output you're seeing here.

Possible solutions:

I would try disabling all plugins, and also try this with the default WordPress theme, or with another theme that does not rearrange the way WordPress applies content formatting filters.
~ 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 error

Postby doctorproctor » June 29th, 2011, 8:57 am

My theme (Striking) allows a [raw][/raw] bracketing, which seems to have fixed the problem; many thanks for your quick assistance.

Jim
User avatar
doctorproctor
Registered User
Registered User
 
Posts: 37
Joined: May 18, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 2 guests

cron