Page 1 of 1

Payment Terms

PostPosted: June 26th, 2011, 2:05 pm
by mekipstrob
Hello All.

I am trying to make the term of recurring payments be only 8 months (a monthly charge for a term of 8 months... not indefinite). I am also trying to pro-rate the billing amount based on when someone signs up. Example: It is a flat fee for for 8 months ($80 ... 8 x $10 payments) and if they sign up with only 6 months left the total would be still be $80 ( 6 x $13.33 payments).

I am wondering where I should hook into the on plugin to add these new payment options.

Thank you in advance for your help and advice.

Re: Payment Terms

PostPosted: June 26th, 2011, 7:21 pm
by Cristián Lávaque
You can change the shortcode values dynamically, this thread may help: viewtopic.php?f=36&t=1604

Re: Payment Terms

PostPosted: June 27th, 2011, 11:26 am
by mekipstrob
That link is helpful and I understand the how to modify the shortcodes with php.

Is there documentation somewhere that describes what each hidden s2member form value in the paypal button code does? ra, a1, a3, p1, p3 etc.... pretty much every listed under the "<!-- Customizes Prices, Payments & Billing Cycle -->" section of the button code so that I can change these subscription variables.

Re: Payment Terms

PostPosted: June 27th, 2011, 11:31 am
by mekipstrob
i need to modify the values of these hidden input fields but need to know what each stands for:

<!-- Customizes Prices, Payments & Billing Cycle -->
<!--<input type="hidden" name="amount" value="0.01" />-->
<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.00" />
<input type="hidden" name="p1" value="0" />
<input type="hidden" name="t1" value="D" />
<input type="hidden" name="a3" value="0.01" />
<input type="hidden" name="p3" value="1" />
<input type="hidden" name="t3" value="M" />

Re: Payment Terms

PostPosted: June 27th, 2011, 4:52 pm
by Cristián Lávaque

Re: Payment Terms

PostPosted: June 27th, 2011, 5:36 pm
by mekipstrob
Thanks Cristian! Exactly what I was looking for.

Re: Payment Terms

PostPosted: June 28th, 2011, 12:07 am
by Cristián Lávaque
:)