$paytr_amount = number_format($paytr_amount,2); kısmını $paytr_amount = number_format($paytr_amount,2,'.',''); olarak deneyin.