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.

About: Chase Rief

Sorry, I've not written a description yet. I'll get to it soon!

Topics I'm Subscribed To

My Latest Replies (From Various Topics)

Viewing 9 replies - 1 through 9 (of 9 total)
Author Replies
Author Replies
Posted: Thursday Jun 27th, 2013 at 8:31 am #52675
Chase Rief
Username: riefmedia

Hi Cristián – thanks for your answer.

I actually did something similar to what you suggested, “patching” the upgrade shortcode with the new price.

On the upgrade page, i have two links, each one sending a different “?upgrade_to” parameter (basic / premium).

Below is the PHP code used to calculate the refund value / discount based on the remaining subscription months.

$upgrade_to = htmlspecialchars($_REQUEST['upgrade_to'], ENT_QUOTES, 'UTF-8');
$expiration_date = get_user_meta($current_user->ID, 'wp_s2member_auto_eot_time', true); 
$remaining_months = -1;
$curr_mem_type = get_current_user_role(2);

if (current_user_is("s2member_level1")) $curr_level_price = 450;
if (current_user_is("s2member_level2")) $curr_level_price = 995;

$today = time();

while($today < $expiration_date)
   $today = strtotime("+ 1 month", $today);

switch($upgrade_to) {
	case "basic":
		$desired_mem_type = "BASIC Membership";
		$desired_level_price = 450;
		$memlevelid = 1;
	case "premium":
		$desired_mem_type = "PREMIUM Membership";
		$desired_level_price = 995;
		$memlevelid = 2;

$refund_value = round ($curr_level_price / 12 * $remaining_months, 2);
$upgrade_price = $desired_level_price - $refund_value;

And this is the shortcode used:

<?php echo do_shortcode('[s2Member-Pro-PayPal-Form modify="1" level="'.$memlevelid.'" ccaps="" desc="Total Charge: $'.$upgrade_price.' USD" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="'.$_SERVER['HTTP_HOST'].'" ta="0" tp="0" tt="D" ra="'.$upgrade_price.'" rp="1" rt="Y" rr="0" rrt="" rra="2" accept="paypal,visa,mastercard,amex" accept_via_paypal="paypal" coupon="" accept_coupons="1" default_country_code="US" captcha="0" /]'); ?>

However, i have a question – if i set the payment recurring (“rr” = 1), and the “ra” (payment value) attribute is discounted above to a lower value than my desired annual subscription – what happens in this case after one year?

For example, the annual fee for premium membership is $995, but due to discounts applied, the “RA” value will be $300. Which will be the amount auto-billed at the end of the time period: $995 or $300?

I’m asking because i would like to have the client auto-billed, but at the regular annual value, not at the discounted price.

Can I setup the discounted payment value as a “trial” payment (“TA = 300”), and then the full value as the regular price (“RA = 995”), with “RR = 1”?
In the case above, after the initial “trial” year expires, the user’s paypal will be auto-charged at the full rate?

Thanks a lot!

Posted: Monday Dec 3rd, 2012 at 9:49 pm #33404
Chase Rief
Username: riefmedia

@George – I want to thank you again for all your help. You’ve helped more than any PayPal person I’ve spoken to (and it has been a lot!).

Anyways, after getting our accounts “linked” it was still giving me a paypal error (Error #10501. Invalid Configuration. This transaction cannot be processed due to an invalid merchant configuration.)

I emailed paypal and they’re saying that again I have the wrong account and that I need to apply for the: Hosted Sole Solution:

Is that what you have? We already have a PayFlow account but they’re saying that I need this and it will take two-weeks to apply and get setup.

Any help you can give is appreciated – thanks – Chase

Posted: Tuesday Nov 27th, 2012 at 6:28 pm #32746
Chase Rief
Username: riefmedia

@George – Sorry for being so dense as this is causing me a lot of headaches and I have not been able to find the answers easily.

My client has the correct account – They said Paypal Payflow pro is the same as Paypal Pro Payflow Edition.

I have put their Paypal info into the PayPal Account details section. I have also put the PayFlow information in.

They just created a paypal account since they were not given one with their payflow info. Are the two accounts linked meaning, is your paypal email connected to your payflow somehow?

Thanks for your help! I really appreciate it.

Posted: Monday Nov 26th, 2012 at 7:55 pm #32650
Chase Rief
Username: riefmedia

@George – Thanks for your response. My client has the PayFlow Pro and then just signed up for a PayPal account. Since I need to enter the credentials for both the paypal account and payflow – do you know if they need to be linked? Right now it’s still sending me to the paypal checkout page. Thanks!

Posted: Wednesday Nov 21st, 2012 at 2:32 pm #32267
Chase Rief
Username: riefmedia

WOW! This is great news! Did you have to do anything special to get the PayPal Pro account in Australia? Is it listed in your paypal account? Thanks for the update – this is big news.

Posted: Tuesday Nov 20th, 2012 at 2:52 pm #32127
Chase Rief
Username: riefmedia

I get a page not found error:

I also search for it and can see it in the search results and get a page not found error there as well.

Posted: Monday Nov 19th, 2012 at 3:27 pm #32008
Chase Rief
Username: riefmedia

Now, when I try to go to that link to reply to Richard – it’s not an active link – please advise.

Posted: Tuesday Sep 18th, 2012 at 11:52 am #25700
Chase Rief
Username: riefmedia

Thank you very much Raam for your suggestion – it was a function i coded in functions.php that conflicted with bbpress, nothing related with s2member at all. No wonder, you have a rock solid plugin over here :)

Posted: Saturday Jun 2nd, 2012 at 10:36 am #15256
Chase Rief
Username: riefmedia

I want to have a notification like:

“You tried to access #PAGENAME# or #FORUMS#.
This page requires #s2member LEVEL#, and your membership level is #USER LEVEL#. Please login or upgrade your membership to view the page content.”
[Regular Membership Options Page Content Below]

If i use the $_GET[‘_s2member_seeking’] it won’t work for displaying the bbPress forums names, although it works for pages. How can i get the #page s2member level#?


Viewing 9 replies - 1 through 9 (of 9 total)

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.