Page 1 of 1

PayPal button error

PostPosted: May 25th, 2011, 11:29 am
by Magicmarker
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/

Re: PayPal button error

PostPosted: May 25th, 2011, 6:24 pm
by Cristián Lávaque
Could you post the shortcode you generated for the button?

Re: PayPal button error

PostPosted: May 25th, 2011, 7:14 pm
by Magicmarker
I just figured out that I was using the long code instead of the shortcode. When I switched it worked!

Re: PayPal button error

PostPosted: May 25th, 2011, 7:56 pm
by Cristián Lávaque
Great! :)

Re: PayPal button error

PostPosted: June 28th, 2011, 2:31 am
by ktkfo4
Just having the same issue but have to use the long code. Same error message from PayPal. Possibly a bug. What should I do?

Re: PayPal button error

PostPosted: June 28th, 2011, 2:59 am
by ktkfo4
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.

Re: PayPal button error

PostPosted: June 28th, 2011, 1:37 pm
by Cristián Lávaque
Thanks for the feedback! I'll let Jason know.

Re: PayPal button error

PostPosted: June 28th, 2011, 2:22 pm
by doctorproctor
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

Re: PayPal button error

PostPosted: June 28th, 2011, 3:34 pm
by Cristián Lávaque
Jim, what do you mean by "all coded in HTML" if it's a shortcode?

Re: PayPal button error

PostPosted: June 28th, 2011, 4:21 pm
by doctorproctor
Sorry: referred to prev post in which WYSIWYG editor was messing it up...it's in shortcode, alright...

Re: PayPal button error

PostPosted: June 28th, 2011, 10:23 pm
by Cristián Lávaque
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?

Re: PayPal button error

PostPosted: June 29th, 2011, 12:46 am
by doctorproctor
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>

Re: PayPal button error

PostPosted: June 29th, 2011, 1:07 am
by Cristián Lávaque
Thanks! I'll show it to Jason.

Re: PayPal button error

PostPosted: June 29th, 2011, 1:29 am
by Jason Caldwell
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.

Re: PayPal button error

PostPosted: June 29th, 2011, 8:57 am
by doctorproctor
My theme (Striking) allows a [raw][/raw] bracketing, which seems to have fixed the problem; many thanks for your quick assistance.

Jim