Skip to content
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

PosNet: Undefined array key "oosResolveMerchantDataResponse" #173

Closed
2 tasks done
KeremWho opened this issue Jan 16, 2024 · 3 comments · Fixed by #174
Closed
2 tasks done

PosNet: Undefined array key "oosResolveMerchantDataResponse" #173

KeremWho opened this issue Jan 16, 2024 · 3 comments · Fixed by #174
Labels
bug Something isn't working posnet

Comments

@KeremWho
Copy link

Information Description
Kütüphane versiyonu 0.16.1
PHP versiyonu 8.2.15
Gateway ismi PosNet
Banka ismi Yapı Kredi

Hatanın özeti

Undefined array key "oosResolveMerchantDataResponse"
VENDORPATH\mews\pos\src\DataMapper\ResponseDataMapper\PosNetResponseDataMapper.php at line 94

INFO - 2024-01-16 13:54:03 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
DEBUG - 2024-01-16 13:54:47 --> creating gateway for bank
DEBUG - 2024-01-16 13:54:47 --> switching mode
INFO - 2024-01-16 13:54:47 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
DEBUG - 2024-01-16 13:54:47 --> set transaction type
DEBUG - 2024-01-16 13:54:47 --> gateway prepare - order is prepared
DEBUG - 2024-01-16 13:54:47 --> sending request
DEBUG - 2024-01-16 13:54:48 --> request completed
DEBUG - 2024-01-16 13:54:48 --> preparing 3D form data
INFO - 2024-01-16 13:54:58 --> Session: Class initialized using 'CodeIgniter\Session\Handlers\FileHandler' driver.
DEBUG - 2024-01-16 13:54:59 --> creating gateway for bank
DEBUG - 2024-01-16 13:54:59 --> switching mode
DEBUG - 2024-01-16 13:54:59 --> set transaction type
DEBUG - 2024-01-16 13:54:59 --> gateway prepare - order is prepared
DEBUG - 2024-01-16 13:54:59 --> payment called
DEBUG - 2024-01-16 13:54:59 --> getting merchant request data
DEBUG - 2024-01-16 13:54:59 --> sending request
DEBUG - 2024-01-16 13:54:59 --> request completed
DEBUG - 2024-01-16 13:54:59 --> mapping 3D payment data
CRITICAL - 2024-01-16 13:54:59 --> ErrorException: Undefined array key "oosResolveMerchantDataResponse"
in VENDORPATH\mews\pos\src\DataMapper\ResponseDataMapper\PosNetResponseDataMapper.php on line 94.
 1 VENDORPATH\mews\pos\src\DataMapper\ResponseDataMapper\PosNetResponseDataMapper.php(94): CodeIgniter\Debug\Exceptions->errorHandler()
 2 VENDORPATH\mews\pos\src\Gateways\PosNet.php(105): Mews\Pos\DataMapper\ResponseDataMapper\PosNetResponseDataMapper->map3DPaymentData()
 3 VENDORPATH\mews\pos\src\Gateways\AbstractGateway.php(324): Mews\Pos\Gateways\PosNet->make3DPayment()
 4 APPPATH\Controllers\Payment.php(91): Mews\Pos\Gateways\AbstractGateway->payment()
 5 SYSTEMPATH\CodeIgniter.php(941): App\Controllers\Payment->callback()
 6 SYSTEMPATH\CodeIgniter.php(502): CodeIgniter\CodeIgniter->runController()
 7 SYSTEMPATH\CodeIgniter.php(361): CodeIgniter\CodeIgniter->handleRequest()
 8 FCPATH\index.php(76): CodeIgniter\CodeIgniter->run()

Bağımsız kod veya hatayı yeniden oluşturmanın bir yolu

PosNet aracılığıyla bir ödeme işlemi gerçekleştirdiğiniz taktirde gerçekleşecektir.

Beklenen Sonuç

Callback işleminin tamamlanması.

Gerçek sonuç

HTTP 500: Undefined array key "oosResolveMerchantDataResponse"

Göndermeden önce kontroller

  • Bu konuda zaten bir hata bildirimi olmadığından emin olun. Bakınız: hata bildirimleri
  • Hatayı yeniden oluşturmak için gereken detayları ekledim.
@nuryagdym
Copy link
Collaborator

nuryagdym commented Jan 16, 2024

Merhabalar, burda satirda hata olusuyor

$oosResolveMerchantDataResponse = $raw3DAuthResponseData['oosResolveMerchantDataResponse'];

oosResolveMerchantDataResponse verisi response'da olmasi gerekiyor. Bankadan gelen response'u ($raw3DAuthResponseData) hassas bilgileri degistirerek paylasir misiniz.

Test ortam bilgileri ben de olmadigi icin kendim deneme yapamiyorum

@KeremWho
Copy link
Author

{"approved":"0","respCode":"E216","respText":"Mac Do\u011frulama hatal\u0131"}

@nuryagdym
Copy link
Collaborator

tesekkurler, bu durumda undefined indexi exception'i olmayacak sekilde guncellerim.
API bilgilerde sorun var gibi.

nuryagdym added a commit that referenced this issue Jan 16, 2024
@nuryagdym nuryagdym added posnet bug Something isn't working labels Jan 16, 2024
@nuryagdym nuryagdym linked a pull request Jan 16, 2024 that will close this issue
nuryagdym added a commit that referenced this issue Jan 19, 2024
…erchantdataresponsekey-oosresolve

fix issue #173
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working posnet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants