This is my first post. I hope I'm doing this right. I have written this little piece of code, it checks some request parameters. Has anyone a clue how to write this in a shorter and maybe better performance way?
$request = $_REQUEST;
if ( isset($request['customerId']) &&
! $request['customerId'] == '' &&
isset($request['subscriptionId']) &&
! $request['subscriptionId'] == '' &&
isset($request['customer_ext_uid']) &&
! $request['customer_ext_uid'] == '' &&
isset($request['referrer']) &&
! $request['referrer'] == '' &&
$request['referrer'] == 'fastbill' ||
$request['referrer'] == 'paypal' &&
$request['do'] == 'success' &&
$request['do'] == 'success' ) :
echo "good";
else :
echo "bad";
endif;
In the end the success URL should look like this:
Thanks in advance!