mta için veritabanı bağlantımız mevcut şöyle;
require_once 'mta.php';
$mta = new mta("1.1.1.1.1", 22005, $mtaUsername, $mtaPassword);
try {
$mta->getResource("in_market")->call("giveBalanceRemote", $accountid, $amount, $createdtime, $customer_data);
} catch (Exception $e) {
// hata kısmı
}Şimdi burada paytr ile entegreli bir sistem yazdık ve paytr sadece callback sayfasında OK yazısını görünce işlemleri başarılı gösteriyor ama bu try arasında bulunan $mta-> ekrana yazı basıyor mta.php kütüphanesinden dolayı bunu nasıl engelleyebiliriz kullanılan fonksiyonlarda bunlar ek olarak bastığı yazıda hemen aşağıda;- ["3","3.00","2023","Windows 10 - Chrome - 1.1.1.1.1"]
function call ( $function )
{
$val = array();
for ( $i = 1; $i < func_num_args(); $i++ )
{
$val[$i-1] = func_get_arg($i);
}
return $this->server->callFunction ( $this->name, $function, $val );
}
public function callFunction( $resourceName, $function, $args )
{
if ( $args != null )
{
$args = mta::convertFromObjects($args);
$json_output = json_encode($args);
}
else
{
$json_output = "";
}
$path = "/" . $resourceName . "/call/" . $function;
$result = $this->do_post_request( $this->host, $this->port, $path, $json_output );
echo $json_output;
$out = mta::convertToObjects( json_decode( $result, true ) );
return (is_array($out)) ? $out : false;
}