-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Akbank-Pos : Amount Alanı patterne uymuyor hatası #249
Comments
Tutarı (float) $amount verdiğim içinmiş. Bilgilerinize. |
@semihyilmaz sorunu sebebini anlamadim. Dokumantsayonlarina gore zaten float bekliyorlar: float verilmesi sorunsa, kutuphanede duzeltilmesi gerekiyor, dokumantasyonlarini guncellemeleri gerekiyor. Ben en son denedigimde bu tarz sorun yoktu. |
@nuryagdym Diğer bankalarda ve hali hazırda,ben kendi order[] kodum içerisinde (float) tip dönüşümü yapıyordum. |
kodunda nasil bilmiyorum ama Farkli gatewayler icin de aynisi gecerli olmasi gerekiyor. Butun bankalarda icin |
$amount=$request->amount; |
neyse, kutuphane sorunu degil bu. $amount = '1.004,03';
number_format($amount, 2, '.', '');
Kutuphane icin ise |
@nuryagdym söyle bir olay var 5 yazınca float ya da double 5.0 çektiği için sorun yaşıyoruz. number_format($data['totalPrice'], 2, '.', '') ise direk 5 tl 5.00 string haline getirdiği için akbank-pos bu doğru gidiyor. order hazırlarken 'amount' => number_format($data['totalPrice'], 2, '.', ''), şeklinde hazırlamak sorunu çözüyor kısaca. |
Sorunu buldum, 5 yada 5.0'i 5.00 olarak gondermemiz gerekiyor. Testlerimde hep 10.01 sekilde sayi gonderdigimden bu sorun ile karsilasmamisim. |
…patterne-uymuyor-hatasi fix issue #249 - AkbankPos invalid amount pattern
master branch'de sorun giderildi. v1.6.0 ile yayina alinacak.
$order['amount'] = 10.0; // ya da 10 |
Harika eline sağlık Murat DEMİRFull Stack Developernuryagdym ***@***.***> şunları yazdı (18 Şub 2025 17:43):
master branch'de sorun giderildi. v1.6.0 ile yayina alinacak.
amount degeri icin her zamanki gibi float bir deger kullanabileceksiniz.
$order['amount'] = 10.0; // ya da 10—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
nuryagdym left a comment (mewebstudio/pos#249)
master branch'de sorun giderildi. v1.6.0 ile yayina alinacak.
amount degeri icin her zamanki gibi float bir deger kullanabileceksiniz.
$order['amount'] = 10.0; // ya da 10
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Sorunuz
Mevcut tüm bankalarda sorun yok. Sadece yeni Akbank Pos'ta bu dönüşü alıyorum.
{"txnCode":"3000","responseCode":null,"responseMessage":"VPS-3001 - amount alan\u0131 patterne uymamaktad\u0131r.","merchantSafeId":null,"terminalSafeId":null,"hashParams":null,"hash":null}
Sabit amount göndermeme rağmen durum bu. Daha önce yaşayan oldu mu?
Göndermeden önce kontroller
The text was updated successfully, but these errors were encountered: