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.

Paypay shortcode links are wrong!

Home Forums Community Forum Paypay shortcode links are wrong!

This topic contains 2 replies, has 2 voices. Last updated by  Raam Dev 4 years, 7 months ago.

Topic Author Topic
Posted: Sunday May 27th, 2012 at 9:09 pm #14785

I recieve this when trying to test the generated paypal links.

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

Here is the shortcode:

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

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Sunday May 27th, 2012 at 11:53 pm #14799

Maybe you can pay me for finding your issue. It is an error in the code.

IN file:

/s2member/includes/templates/buttons/paypal-checkout-button.php

on line 35:

<!-- <input type="hidden" name="amount" value="0.01" /> -->

Is causing the generated code to do this:

<!-- <!--<br />
<input type="hidden" name="amount" value="14.99" />&#8211;> &#8211;></p>
<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="100.00" />
<input type="hidden" name="p1" value="1" />
<input type="hidden" name="t1" value="M" />
<input type="hidden" name="a3" value="14.99" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />
 <!-- Displays The PayPal® Image Button -->

As you can see HTML don’t work that way. ;/

I deleted that line from the file, and it works perfectly now.
I would like to add that the code generator in the admin panel after clicking the generate code, and testing the link on that page works perfectly..

Posted: Monday May 28th, 2012 at 7:51 am #14808
Raam Dev
Username: Raam
Staff Member

Hi Thomas,

I cannot reproduce this problem. Are you pasting the shortcode into the visual editor or the HTML editor of your post/page?

Also, have you tried switching to one of the default WordPress themes to see if the problem still occurs? Your theme, or possibly even another plugin, could be causing this issue on your site.

Viewing 2 replies - 1 through 2 (of 2 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.