My fixes to pro-site subscription bugs from legacy accounts

The bugs that existed last summer were unacceptable, here are the fixes that still seem to not be addressed:

BUG 1: HOT FIX pro-sites-stripe-fix-20151215 MESSED THINGS UP MORE
pro-sites-files/gateways/gateway-stripe.php LINE 1534

if ( time() < $extend_window ) {
				/* blog has already been extended by another webhook within the past
					 5 minutes - don't extend again, but send receipt if its a payment */
				if ( $is_payment ) {
					//$psts->email_notification( $blog_id, 'receipt', false, $args );
	}
				return false;
}

This will not operate as expected because of the "Hot FIX" in the file:

pro-sites-stripe-fix-20151215/pro-sites-stripe-fix-20151215.php LINE 163

is using the psts_stripe_last_webhook_extend option and adding +5400....

To overcome this problem, I rewrote this block as follows:

if ( time() < $extend_window ) {
				/* blog has already been extended by another webhook within the past
					5 minutes - don't extend again, but send receipt if its a payment */
				if ( $is_payment ) {
					//$psts->email_notification( $blog_id, 'receipt', false, $args );
	}
				$ben_check = time() + 5400;
				if ($ben_check < $extend_window ) { //ben gear
		 	return false;
				} //ben
}

BUG 2: $subscription->customer_id not being set
pro-sites-files/gateways/gateway-stripe.php LINE 1336

if ( $from_sub ) {
	$subscription = $object;
}

Needs to be changed to:

if ( $from_sub ) {
	$subscription = $object;
         if (isset($object->customer)) {
			     $subscription->customer_id   = $object->customer;
        }
}

Those were two of the bugs in the code that cost me big time.

Please forward this to Umesh Kumar and Aaron for their thoughts.