Code Monkey home page Code Monkey logo

Comments (17)

nuryagdym avatar nuryagdym commented on July 23, 2024 1

tesekkurler, inceleyecegim bunu, guvenlik amacli sildim response'u

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

Merhabalalar,
tekrar deneneyip, KuveytPosRequestDataMapper.php dosyada 83. satira bu kodu: dd($responseData); ekleyerek ciktiyi paylasir misin.
Bu bilgileri icinde hassas veri varsa, onlari kaldirip oylep paylasir misin.

Kuveytgateway'i test etme imkanimiz olmadi, yardimci olursaniz, tamamlariz Kuveyti de

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

Görseldeki hatayı geçemiyor o keyi yorum satırına çektiğim zaman

'DisplayAmount' => $responseData['VPosMessage']['DisplayAmount'],

bu seferde bu keyi bulamıyor

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

evet, ama yukarda dedigim response lazim bize, ona gore guncelleriz kodu

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

evet, ama yukarda dedigim response lazim bize, ona gore guncelleriz kodu

verdiğiniz kodu alta koymuştum o yüzden geçememiş şuanda düzenledim boş sayfa açtı herhangi bir veri yazmadı

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

pardon dd yerine print_r olacak yani print_r($responseData);

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

pardon dd yerine print_r olacak yani print_r($responseData);

aynı key sorununa takılıyor bulunmayan keyleri kapattım bu seferde alttaki keyi bulamadı

https://prnt.sc/vJsavTFGOCxC

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

kisacasi bunu cozebilmem icin gelen banktan gelen response'un icerigi lazim bana.
print_r($responseData); die(); dener misin.die yapilmazsa Codeigniter basilan degeri temizliyor anladigim.

Bulunmayan keyleri kapatmaman gerekiyor cunku onlar bankaya gonderilmesi gereken degerler. O keyler ulasilamiyorsa belki baska turlu erismemiz gerekiyor o bilgilere.

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

KuveytPosRequestDataMapper::create3DPaymentRequestData() methodu su sekilde guncelleyip dener misin, ondan sonra undefined key hatasi vermemesi gerekiyor bu metod'da:

public function create3DPaymentRequestData(AbstractPosAccount $account, $order, string $txType, array $responseData): array
    {
        $hash = $this->create3DHash($account, $order, $txType, true);

        return $this->getRequestAccountData($account) + [
            'APIVersion'                   => self::API_VERSION,
            'HashData'                     => $hash,
            'CustomerIPAddress'            => $order->ip,
            'KuveytTurkVPosAdditionalData' => [
                'AdditionalData' => [
                    'Key'  => 'MD',
                    'Data' => $responseData['MD'],
                ],
            ],
            'TransactionType'              => $this->mapTxType($txType),
            'InstallmentCount'             => $responseData['VPosMessage']['InstallmentCount'],
            'Amount'                       => $responseData['VPosMessage']['Amount'],
            'DisplayAmount'                => self::amountFormat($responseData['VPosMessage']['Amount']),
            'CurrencyCode'                 => $responseData['VPosMessage']['CurrencyCode'],
            'MerchantOrderId'              => $responseData['VPosMessage']['MerchantOrderId'],
            'TransactionSecurity'          => $responseData['VPosMessage']['TransactionSecurity'],
        ];
    }

Ondan sonra, KuveytPos.php'de response da paylasir misin, 493. satira bu kodu eklemen gerekir: print_r($raw3DAuthResponseData); die(); ciktiyi direk epostama gondersen iyi olur [email protected]

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

KuveytPosRequestDataMapper::create3DPaymentRequestData() methodu su sekilde guncelleyip dener misin, ondan sonra undefined key hatasi vermemesi gerekiyor bu metod'da:

public function create3DPaymentRequestData(AbstractPosAccount $account, $order, string $txType, array $responseData): array
    {
        $hash = $this->create3DHash($account, $order, $txType, true);

        return $this->getRequestAccountData($account) + [
            'APIVersion'                   => self::API_VERSION,
            'HashData'                     => $hash,
            'CustomerIPAddress'            => $order->ip,
            'KuveytTurkVPosAdditionalData' => [
                'AdditionalData' => [
                    'Key'  => 'MD',
                    'Data' => $responseData['MD'],
                ],
            ],
            'TransactionType'              => $this->mapTxType($txType),
            'InstallmentCount'             => $responseData['VPosMessage']['InstallmentCount'],
            'Amount'                       => $responseData['VPosMessage']['Amount'],
            'DisplayAmount'                => self::amountFormat($responseData['VPosMessage']['Amount']),
            'CurrencyCode'                 => $responseData['VPosMessage']['CurrencyCode'],
            'MerchantOrderId'              => $responseData['VPosMessage']['MerchantOrderId'],
            'TransactionSecurity'          => $responseData['VPosMessage']['TransactionSecurity'],
        ];
    }

Ondan sonra, KuveytPos.php'de response da paylasir misin, 493. satira bu kodu eklemen gerekir: print_r($raw3DAuthResponseData); die(); ciktiyi direk epostama gondersen iyi olur [email protected]

Merhaba eposta gönderdim.

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

Merhabalar, gelmedi nedense buna gondermeyi dener misin [email protected]

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

Merhabalar, gelmedi nedense buna gondermeyi dener misin [email protected]

Tekrar gönderilmiştir.

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

Geldi, ama bu gonderidigin response print_r($raw3DAuthResponseData); die(); ile KuvetPos.php icinden basilan response mu?

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

KuveytPost::tDPayResponseCommon() metodda bu satiri:

$default['hash'] = $raw3DAuthResponseData['VPosMessage']['HashData'];

bu sekilde:

$default['hash'] = $raw3DAuthResponseData['HashData'];`

degistirip tekrar dener misin

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

Bir de elinde gunce KuveytPos dokumani varsa paylasir misin, mumkunse test ortam bilgileriyle. direk [email protected] epostama gonderebilirsin

from pos.

mettleshade avatar mettleshade commented on July 23, 2024

Bir de elinde gunce KuveytPos dokumani varsa paylasir misin, mumkunse test ortam bilgileriyle. direk [email protected] epostama gonderebilirsin

dediklerini yapıp detaylı bir mail gönderdim, test verileri ve güncel döküman almadım kuveytten direk canlıda test etmeye başladım.

from pos.

nuryagdym avatar nuryagdym commented on July 23, 2024

Sorunlar halledildi.
Not olarak burada alinan Kuveyt pos hata mesajlari ve aciklamalarini birakiyorum:

MetaDataNotFound - Ödeme detayı bulunamadı.
Hatasinin sebebi hatali environment URL'e istek gonderilmesi, yani production credentials ile test ortamina istek gonderilmesi.

HashDataError - Şifrelenen veriler (Hashdata) uyuşmamaktadır.
Bankadan donusde, provizyon tamamlamak icin bankaya gonderilen istege karsilik gelen hata mesaji.
Hatanin sebeplerinden biri response islediginiz sayfada Pos Gateway'e dogru order bilgilerinin verilmemesi.

from pos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.