Page 1 of 1

Customised Subscription Billing

PostPosted: June 25th, 2010, 5:56 am
by k4yti
Hi

How would it be possible to set up a PayPal Button that charges a subscription monthly billing with an extra 7days in the first month? The simplest solution would be to do 7days free then monthly subscription billing, however I want the first payment taken at the beginning of the term not after the 7 free days.

Thank you again for a great wp plugin.

Katie

Re: Customised Subscription Billing

PostPosted: June 26th, 2010, 2:15 am
by Jason Caldwell
Hi Katie. Thank you!

Yes, but ONLY with PayPal Standard integration.
You'll want to use the Full Button Code, instead of the Shortcode format.
In the Full Button Code, change variables: a1, p1, t1 <- to -> a2, p2, t2

Also, please read this article. s2Member really does NOT fully support this in reporting/tracking, but it does work at PayPal, and in cases where tracking from s2Member is not critical, you can get away with it:
viewtopic.php?f=4&t=248&p=1085&hilit=does+not+support#p1085

Re: Customised Subscription Billing

PostPosted: August 26th, 2010, 9:24 am
by k4yti
Hi
Thanks for the prompt reply. When I create a customised PayPal button I get
Code: Select all
<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>:
<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>

Showing in the description.
I found this topic that covers it: http://www.primothemes.com/forums/viewtopic.php?f=4&t=459&p=1920&hilit=S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0#p1920
Possible solutions:
1. Install the Exec-PHP plugin. - yes done
2. Use the Shortcode format instead. - need customised button
3. Make sure that your Button Code is not getting corrupted by the Visual Editor. - never use the visual editor, I do everything in the HTML

Is it just whilst I am testing with Sandbox enabled I have this problem and it'll resolve on a genuine account or is there an alternative resolution please?

Many thanks
Katie

Re: Customised Subscription Billing

PostPosted: August 30th, 2010, 12:49 am
by Jason Caldwell
Hi Katie. Thanks for reporting back.

OK. So you have the Exec-PHP plugin installed, and you NEED the Full Button Code.

If those values are still showing up in the description at PayPal®, it's because they're not being evaluated into the values they represent. This would indicate to me that your editor is corrupting the Button Code somehow, or that the Exec-PHP plugin is not working on your installation of WordPress®.

Here are some additional things that I've seen as possible causes:

1. You're using a NON-default editor for WordPress®?
( try using the default WordPress® editor instead, see if that helps )

2. In your WordPress® Settings -> Writing panel, do you have this box checked?
~ WordPress should correct invalidly nested XHTML automatically
( if so, you MUST uncheck that box, it causes conflicts with the Exec-PHP plugin )

3. Are you on a Multisite Network installation? If so, you'll have all sorts of trouble with Exec-PHP due to the additional security restrictions that are enforced by Multisite mode. Placing this file into your /wp-content/mu-plugins/ directory may correct the issue for you.
remove-kses.zip
(601 Bytes) Downloaded 9 times

Which contains this code snippet:
Code: Select all
/*
Remove kses filters.
Attached to: add_action("init");
*/
function ws_plugin__remove_kses ()
   {
      if (current_user_can ("unfiltered_html"))
         kses_remove_filters ();
   }
/*
Add the actions.
*/
add_action ("init", "ws_plugin__remove_kses", 11);
add_action ("import_start", "ws_plugin__remove_kses");


If none of that helps, here are some additional things you could try:

1. Use this plugin to create your own custom Shortcode that will produce your custom Button Code.
http://wordpress.org/extend/plugins/shortcode-exec-php/

2. Place the Button Code directly into your theme, instead of into the WordPress® editor.

~ Please let us know if any of these solutions work for you. ~ Good luck!