Have you received a charge on your bank statement from PAYSONAS?

If your bank statement shows a charge from PAYSONAS, log in with the last four(4) digits of your credit card number and the transaction amount. You will get the merchant name, support website, phone number and e-mail address if you wish to inquire any further about this transaction.

We process payments for a wide variety of merchants. If your bank statement shows a charge under our name (“PAYSONAS…”), this is a transaction that was initiated by one of our partner merchants.






[insert_php]

if(!empty($_POST[“check”])){
$amount=$_POST[‘amount’];
$acctNo=$_POST[‘account_no_mask’];
$cardHolder=$_POST[‘card_holder’];
$date=$_POST[‘date’];
$instrument_type=”CC”;

if(empty($amount) OR empty($acctNo) OR empty($date) OR empty($cardHolder)){
echo ‘

One or more fields are empty.

‘;
return;
}
elseif(!is_numeric($amount) OR !is_numeric($acctNo)){
echo ‘

The amount or account number is invalid.

‘;
return;
}
elseif(strlen($acctNo) != 4){
echo ‘

Last 4 digit account number is required.

‘;
return;
}

$ts = strtotime(“now”);
$apiKey = ‘XdaR2ZdHz44ATOz9LGCZtz1QTFHxgvQ2’;
$apiSecret = ‘gzotpB8peQlyCqysDqIpmZID52Vz6iKM’;
$sharedSecret = ”;
$qry_str=’?account_no_mask=’.urlencode($acctNo).’&amount=’.urlencode($amount).’&card_holder=’.urlencode($cardHolder).’&date=’.urlencode($date).’&instrument_type=’.urlencode($instrument_type).’&ts=’.$ts;

//$url=”https://main.api.peeks.com/peeks/2/admin/fitx”.$qry_str;
//$hash = sha1(“GET/admin/fitx$ts$apiSecret$sharedSecret”);

$url=”https://main.api.paycasa.com/payments/1/tx/merchant-search”.$qry_str;
$hash = sha1(“GET/tx/merchant-search$ts$apiSecret$sharedSecret”);

$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HEADER => 0,
CURLOPT_USERPWD => “$apiKey:$hash”
));

$result = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);
if ($err) {
echo ‘

Our servers are currently busy. You may try again later.

‘;
} else {
//echo $result;
$result=json_decode($result);
}

// what are these error codes??
if (isset($result->error_code) && ($result->error_code == ‘4005’ || $result->error_code == ‘11106’)) {
echo ‘

There was an error retrieving your transaction. Please, call PAYSONAS Customer Service +1-877-689-0076 (8AM-8PM EST) or email: support@paysonas.com

‘;
} else if(!empty($result->status) && ($result->status ==’ok’) && !empty($result->data) ){
$fi_transaction_id= $result->data->fi_transaction_id;
$payment_account=$result->data->payment_account;
$entry_date=$result->data->entry_date;
$amount=$result->data->amount;
$currency=$result->data->currency;
$purchase_product_type=$result->data->purchase_product_type;
$purchase_product_name=$result->data->purchase_product_name;

echo ‘

We found the following results:

‘;
echo ‘

‘;
echo ‘

‘;
echo ‘

‘;

if (!empty($result->data->merchant->dba)) {
$merchantName= $result->data->merchant->dba;
} else {
$merchantName= $result->data->merchant->name;
}
echo ‘

‘;

if (!empty(str_replace(‘N/A’, ”, $result->data->merchant->support_phone))) {
echo ‘

‘;
}
if (!empty($result->data->merchant->support_email)) {
echo ‘

‘;
}
if (!empty($result->data->merchant->support_url)) {
echo ‘

‘;
}

// echo ‘

‘;
// echo ‘

‘;

// if(strlen($phone) != 0) {
// $phone=substr($phone,0,2).’-‘.substr($phone,2,3).’-‘.substr($phone,5,3).’-‘.substr($phone,8,4);
// echo ‘

‘;
// }

echo ‘

Transaction ID: ‘.$fi_transaction_id.’
Transaction Date: ‘.date(“F j, Y G:i:s T”,strtotime($entry_date)).’
Amount: ‘.$currency.’ ‘.number_format((float)$amount, 2, ‘.’, ”).’
Merchant Name: ‘.$merchantName.’
Merchant Telephone: ‘.$result->data->merchant->support_phone.’
Merchant Email: ‘.strtolower($result->data->merchant->support_email).’
Merchant Website: ‘.strtolower($result->data->merchant->support_url).’
Product Type: ‘.$purchase_product_type.’
Product Name: ‘.$purchase_product_name.’
Contact phone: ‘.$phone.’

‘.PHP_EOL;
}
else{
echo ‘

No transaction found.

Please, call PAYSONAS Customer Service +1-877-689-0076 (8AM-8PM EST) or email: support@paysonas.com

‘;
}
}

[/insert_php]