8000 "Guvenlik Kodu hatalı" Hatası · Issue #268 · mewebstudio/pos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"Guvenlik Kodu hatalı" Hatası #268

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

Open
yorulmazsinan opened this issue Apr 18, 2025 · 3 comments
Open

"Guvenlik Kodu hatalı" Hatası #268

yorulmazsinan opened this issue Apr 18, 2025 · 3 comments

Comments

@yorulmazsinan
Copy link

Laravel paketinizi kullanarak, entegrasyonumuz tamamlandı. get3DFormData() ile aşağıdaki URL’ye form gönderiyoruz:

🔗 https://sanalposprov.garanti.com.tr/servlet/gt3dengine

Ancak form gönderimi sonrası 3D Secure ekranı hiç açılmadan mdstatus=7 ve "Guvenlik Kodu hatalı" hatası alıyoruz.

Kart bilgileri %100 doğru, farklı kartlarla denememize rağmen sonuç aynı.

get3DFormData() çıktısı ise şu şekilde:

Array
(
[gateway] => https://sanalposprov.garanti.com.tr/servlet/gt3dengine
[method] => POST
[inputs] => Array
(
[secure3dsecuritylevel] => 3D
[mode] => PROD
[apiversion] => 512
[terminalprovuserid] => PROVAUT
[terminaluserid] => PROVAUT
[terminalmerchantid] => ******
[terminalid] => ********
[txntype] => sales
[txnamount] => 100
[txncurrencycode] => 949
[txninstallmentcount] =>
[orderid] => ade62f70f9793f64c7
[successurl] => https://.com/payment-status?orderId=ade62f70f9793f64c7
[errorurl] => https://
.com/payment-status?orderId=ade62f70f9793f64c7
[customeripaddress] => ...
[cardnumber] => ****************
[cardexpiredatemonth] => **
[cardexpiredateyear] => **
[cardcvv2] => ***
[secure3dhash] => ******************************************************************
)
)

Yani form doğru bir şekilde oluşuyor, bu aşamadan sonra bankanın 3d doğrulama ekranını görmemiz lazım ama geri dönüp hata alıyoruz. Bazı log kayıtlarımız ise şunlar:

[2025-04-18 23:21:32] local.DEBUG: switching mode {"is_test_mode":false}
[2025-04-18 23:21:32] local.INFO: Sipariş güncellendi {"order_id":34110,"products_count":1}
[2025-04-18 23:21:32] local.DEBUG: preparing 3D form data
[2025-04-18 23:21:32] local.DEBUG: "3D Form" verileri gönderimi: {"bank":"garanti","card_association":"master","install":0}
[2025-04-18 23:21:39] local.DEBUG: switching mode {"is_test_mode":false}
[2025-04-18 23:21:39] local.DEBUG: payment called {"card_provided":false,"tx_type":"pay","model":"3d"}
[2025-04-18 23:21:39] local.ERROR: 3d auth fail {"md_status":"7"}
[2025-04-18 23:21:39] local.DEBUG: mapping 3D payment data {
"3d_auth_response": {
"mdstatus": "7",
"mderrormessage": "Guvenlik Kodu hatali",
"errmsg": "Guvenlik Kodu hatali",
"clientid": "",
"oid": "
",
"response": "Error",
"procreturncode": "99",
"apiversion": "512",
"orderid": "
",
"txninstallmentcount": null,
"terminaluserid": "*******",
"secure3dhash": "
",
"secure3dsecuritylevel": "3D",
"txncurrencycode": "949",
"errorurl": "https://
.com/payment-status?orderId=",
"terminalmerchantid": "",
"mode": "PROD",
"terminalprovuserid": "*******",
"txnamount": "100",
"successurl": "https://
.com/payment-status?orderId=",
"txntype": "sales",
"customeripaddress": "
..
.",
"terminalid": ""
},
"provision_response": null
}
[2025-04-18 23:21:39] local.ERROR: Ödeme hatası {
"error_message": "Guvenlik Kodu hatali",
"error_code": "99",
"procreturncode": "Yok",
"mdstatus": "Yok",
"response": {
"transaction_time": null,
"payment_model": "3d",
"batch_num": null,
"all": null,
"transaction_security": "MPI fallback",
"md_status": "7",
"masked_number": null,
"tx_status": null,
"eci": null,
"cavv": null,
"md_error_message": "Guvenlik Kodu hatali",
"3d_all": {
"mdstatus": "7",
"mderrormessage": "Guvenlik Kodu hatali",
"errmsg": "Guvenlik Kodu hatali",
"clientid": "",
"oid": "
",
"response": "Error",
"procreturncode": "99",
"apiversion": "512",
"orderid": "
",
"txninstallmentcount": null,
"terminaluserid": "*******",
"secure3dhash": "
",
"secure3dsecuritylevel": "3D",
"txncurrencycode": "949",
"errorurl": "https://
.com/payment-status?orderId=",
"terminalmerchantid": "",
"mode": "PROD",
"terminalprovuserid": "*******",
"txnamount": "100",
"successurl": "https://
.com/payment-status?orderId=",
"txntype": "sales",
"customeripaddress": "
..
.",
"terminalid": ""
},
"order_id": "
****",
"transaction_id": null,
"transaction_type": "pay",
"installment_count": 0,
"currency": "TRY",
"amount": 1.0,
"auth_code": null,
"ref_ret_num": null,
"proc_return_code": "99",
"status": "declined",
"status_detail": "general_error",
"error_code": "99",
"error_message": "Guvenlik Kodu hatali"
}
}

Laravel paketi 1.2 sürümünü kullanıyorum.

@nuryagdym
Copy link
Collaborator

Merhabalar,
Garantide test ortamda denedigimde calisiyor, bunlarin test ortaminda 3d onay sayfasi acilmiyor, direk basarili cevap geliyor, yani ayni prod ortami gibi calismiyor.

Anladigim kadariyla amount'u 1 TL vermissiniz, garanti mi bilmiyorum, ama bir bankada dusuk miktar oldugunda hata almistim. 10TL deneyebilir misiniz.

Sorun devam ederse bankaya sorar misiniz, cevabini da paylasirsaniz sevinirim.

@topraksu28
Copy link

Merhaba Sinan Bey,
Aynı sorunu bende yaşamaktayım sonu nasıl hallettiğini rica etsem bizimlede paylaşır mısınız?

@sahinyghs
Copy link

Merhaba, defalarca denedim farklı yöntemler ve farklı ortamlarda. Çözüme ulaşabildiniz mi?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
0