<?php $email=''; // Enter cashmaal account email id here. $mode='test'; // Enter integration mode here, ('test' or 'live') /* if you will use TEST mode you should check with predefind test email. Test Valid Email: ok@cashmaal.com Test invalid Email: you can use any email id. */ $url="https://www.cashmaal.com/Pay/verify_accounts.php?mode=".$mode."&email=".urlencode($email); $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL, $url); $result = curl_exec($ch); curl_close($ch); $obj = json_decode($result); $api_status=$obj->status; //======== 1 = Account Found, 0= Account Not found if($api_status == 1){ echo $obj->email; //==== CashMaal Email Id echo "<br>"; echo $obj->name; //==== CashMaal Account Title }else{ echo $obj->error; //=== Showing Error } ?>