CMS MADE SIMPLE FORGE

PaypalGateway

 

[#7908] Correct code for PayPal subscription expiry problem

avatar
Created By: Penny Olorenshaw (pennyolo)
Date Submitted: Mon Apr 30 20:40:36 -0400 2012

Assigned To: Robert Campbell (calguy1000)
Version: 2.3.7
CMSMS Version: 1.10.3
Severity: Critical
Resolution: None
State: Open
Summary:
Correct code for PayPal subscription expiry problem
Detailed Description:
There is an error in the setting for a recurring subscription.


LIne 742:  	$exp = $subscr_item->get_subscr_expires();
	if( !$exp )
	  {
	    $parms['src'] = 0;
	  }
	else
	  {
	    $parms['src'] = 1;
	    $parms['srt'] = $exp;
	  }


SHOULD BE:

	$exp = $subscr_item->get_subscr_expires();
	if( !$exp )
	  {
	    $parms['src'] = 1;
	  }
	else
	  {
	    $parms['src'] = 0;
	    $parms['srt'] = $exp;
	  }


This works!

Cheers,
Penny



History