= 0) {
if(get_magic_quotes_gpc()) {
$str = stripslashes($str);
}
if(@mysql_ping()) {
$str = mysql_real_escape_string($str);
}
else {
$str = addslashes($str);
}
}
else {
if(!get_magic_quotes_gpc()) {
$str = addslashes($str);
}
}
return $str;
}
//custom function end
$environment = ‘live’; // or ‘beta-sandbox’ or ‘live’ or ‘sandbox’
//$environment = ‘sandbox’; // or ‘beta-sandbox’ or ‘live’ or ‘sandbox’
function PayPalFuc($methodName_, $nvpStr_) {
global $environment;
// Set up your API credentials, PayPal end point, and API version.
//$API_UserName = urlencode(‘surend_1209025438_biz_api1.intenss.com’);
//$API_Password = urlencode(‘1209025451’);
//$API_Signature = urlencode(‘Ast7lnzOy7DNOHdbZt7dRxCqOgHKADWtXyM3tUHJA8JkuxcbgAdPQlkJ’);

$API_UserName = urlencode(‘info_api1.evictionresources.com’);
$API_Password = urlencode(‘YLSR3LHKVU7ZZV3J’);
$API_Signature = urlencode(‘AFcWxV21C7fd0v3bYYYRCpSSRl31A5c5ffClhTfLYPWyoHJHDEvWcFsH’);

////////////////Old////////////////////
//$API_UserName = urlencode(‘jitendra_api1.drupaldevelopmentservices.com’);
//$API_Password = urlencode(‘1364555465’);
//$API_Signature = urlencode(‘AJd0TSM3PujWbIxVLPwBIPQxe9XeAjIga56IMtOlfMNtdeVr4gueEar1’);

$API_Endpoint = “https://api-3t.paypal.com/nvp”;
if(“sandbox” === $environment || “beta-sandbox” === $environment) {
$API_Endpoint = “https://api-3t.sandbox.paypal.com/nvp”;
}
$version = urlencode(‘56.0’);
//echo $API_Endpoint;
// Set the curl parameters.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $API_Endpoint);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
// Turn off the server and peer verification (TrustManager Concept).
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
// Set the API operation, version, and API signature in the request.
$nvpreq = “METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_”;

//echo $nvpreq;

curl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);

// Get response from the server.
$httpResponse = curl_exec($ch);

if(!$httpResponse) {
exit(“$methodName_ failed: “.curl_error($ch).'(‘.curl_errno($ch).’)’);
}

// Extract the response details.
$httpResponseAr = explode(“&”, $httpResponse);

$httpParsedResponseAr = array();
foreach ($httpResponseAr as $i => $value) {
$tmpAr = explode(“=”, $value);
if(sizeof($tmpAr) > 1) {
$httpParsedResponseAr[$tmpAr[0]] = $tmpAr[1];
}
}

if((0 == sizeof($httpParsedResponseAr)) || !array_key_exists(‘ACK’, $httpParsedResponseAr)) {
exit(“Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.”);
}

return $httpParsedResponseAr;
}

$form_state= $_POST[‘form_state’];
//$form_fee=$_POST[‘form_fee’];
// Set request-specific fields.
$L_NAME1=$_POST[‘form_state’];
$paymentType = urlencode(‘Sale’); // or ‘Authorization’
$firstName = urlencode($_POST[‘txtfname’]);
$lastName = urlencode($_POST[‘txtlname’]);
$creditCardType = urlencode($_POST[‘cctype’]);
$creditCardNumber = urlencode($_POST[‘txtcardnumber’]);
$expDateMonth = urlencode($_POST[‘txtmonth’]);
// Month must be padded with leading zero
$padDateMonth = urlencode(str_pad($expDateMonth, 2, ‘0’, STR_PAD_LEFT));

$expDateYear = urlencode($_POST[‘txtyear’]);
$cvv2Number = urlencode($_POST[‘txtcvv’]);
$address1 = urlencode($_POST[‘txtadd1’]);
$address2 = urlencode($_POST[‘txtadd2’]);
$city = urlencode($_POST[‘txtcity’]);
$state = urlencode($_POST[‘txtstate’]);
$zip = urlencode($_POST[‘txtzip’]);
$country = urlencode(‘US’); // US or other valid country code
//$amount = urlencode(‘7.99’);
$amount = urlencode($_POST[‘form_fee’]);
$currencyID = urlencode(‘USD’); // or other currency (‘GBP’, ‘EUR’, ‘JPY’, ‘CAD’, ‘AUD’)

$inv_id=random_generator(25);

//$inv_id=$_SERVER[‘REMOTE_ADDR’].date(“YmdHis”);
//echo $inv_id;
//echo “
“;
//exit();
$ip=$_SERVER[‘REMOTE_ADDR’];
$t_browser=$_SERVER[‘HTTP_USER_AGENT’];
$t_date= date(“Y-m-d”);

//$sql = “insert into wp_tbl_transactions (txn_id,ip_add,t_browser,t_date,txtfname,txtlname,cctype,txtcardnumber,txtmonth,txtyear,txtcvv,txtadd1,txtadd2,txtcity,txtstate,txtzip,txtamt,txtcountry,txtcurrencyid,trans_status,form_state,form_fee) values(‘$inv_id’,’$ip’,’$t_browser’,’$t_date’,’$firstName’,’$lastName’,’$creditCardType’,’$creditCardNumber’,’$padDateMonth’,’$expDateYear’,’$cvv2Number’,’$address1′,’$address2′,’$city’,’$state’,’$zip’,’$amount’,’$country’,’$currencyID’,’Pending’,’$L_NAME1′,’$amount’) “;

$sql = “insert into wp_tbl_transactions (txn_id,ip_add,t_browser,t_date,txtfname,txtlname,cctype,txtcardnumber,txtmonth,txtyear,txtadd1,txtadd2,txtcity,txtstate,txtzip,txtamt,txtcountry,txtcurrencyid,trans_status,form_state,form_fee) values(‘$inv_id’,’$ip’,’$t_browser’,’$t_date’,’$firstName’,’$lastName’,’$creditCardType’,’$creditCardNumber’,’$padDateMonth’,’$expDateYear’,’$address1′,’$address2′,’$city’,’$state’,’$zip’,’$amount’,’$country’,’$currencyID’,’Pending’,’$L_NAME1′,’$amount’) “;

//echo $sql;
//exit();
//echo “
“;
if(isset($_POST[‘form_state’]) && $_POST[‘form_state’]!=””){
$queryresult = mysql_query($sql);

$nvpStr = “&PAYMENTACTION=$paymentType&AMT=$amount&CREDITCARDTYPE=$cctype&ACCT=$creditCardNumber”.
“&EXPDATE=$padDateMonth$expDateYear&CVV2=$cvv2Number&FIRSTNAME=$firstName&LASTNAME=$lastName”.
“&STREET=$address1&CITY=$city&STATE=$state&ZIP=$zip&COUNTRYCODE=$country&CURRENCYCODE=$currencyID&custom=$L_NAME1”;

$httpParsedResponseAr = PayPalFuc(‘DoDirectPayment’, $nvpStr);

}
?>

0){

$p_txn_id=$httpParsedResponseAr[“TRANSACTIONID”];
$p_txn_msg=”AVS Result: “.$httpParsedResponseAr[“AVSCODE”];
$p_txn_msg2=”CVV2 Match: “.$httpParsedResponseAr[“CVV2MATCH”];
$p_error_code=””;
$p_error_code2=””;
$p_amt=urldecode($httpParsedResponseAr[“AMT”]);

$sql2 = “update wp_tbl_transactions set trans_status=’Completed’,p_txn_id=’$p_txn_id’,p_txn_msg=’$p_txn_msg’,p_txn_msg2=’$p_txn_msg2′,p_error_code=’$p_error_code’,p_error_code2=’$p_error_code2′ WHERE txn_id = ‘$inv_id'”;

$queryresult = mysql_query($sql2);

?>

Eviction Notice

Thank You!
Thank You for Purchasing your Eviction Notice Forms!

Please download your forms below. Once you leave this page, you will not be able to return.
$dirRes

“;
}
}?>

FREE LIMITED TIME BONUS:
Universal Residential Rental Application.rtf
0){

$p_txn_id=”CORRELATIONID: “.$httpParsedResponseAr[“CORRELATIONID”];
$p_error_code2=$httpParsedResponseAr[“SEVERITYCODE0”];
$p_error_code=$httpParsedResponseAr[“L_ERRORCODE0”];
$p_txn_msg2=”L_SHORTMESSAGE0: “.urldecode($httpParsedResponseAr[“L_SHORTMESSAGE0”]);
$p_txn_msg=”L_LONGMESSAGE0: “.urldecode($httpParsedResponseAr[“L_LONGMESSAGE0”]);

$sql2 = “update wp_tbl_transactions set trans_status=’Declined’,p_txn_id=’$p_txn_id’,p_txn_msg=’$p_txn_msg’,p_txn_msg2=’$p_txn_msg2′,p_error_code=’$p_error_code’,p_error_code2=’$p_error_code2′ WHERE txn_id = ‘$inv_id'”;

$queryresult = mysql_query($sql2);
?>


Please Try Again.
 

If you have any questions, please contact us for support at info@evictionresources.com


Please Try Again.
 

If you have any questions, please contact us for support at info@evictionresources.com


If you have any trouble, simply Contact Us.
Thank You for Using Landlord Guidance!