GithubHelp home page GithubHelp logo

tekrarlanan odeme durum sorgulama about pos HOT 6 CLOSED

lansas avatar lansas commented on June 16, 2024
tekrarlanan odeme durum sorgulama

from pos.

Comments (6)

lansas avatar lansas commented on June 16, 2024 1

from pos.

lansas avatar lansas commented on June 16, 2024

3 class da değişiklik lazım.
Bunlardan bir tanesi

public function createStatusRequestData(AbstractPosAccount $account, $order): array
    {
       
        return isset($order->RECURRINGID) ?
            $this->getRequestAccountData($account) +

            [

                'Extra' => [
                    $this->mapTxType(AbstractGateway::TX_STATUS) => 'QUERY',
                    'RECURRINGID' => $order->RECURRINGID
                ],
            ]
            :
            $this->getRequestAccountData($account) +  [
                'OrderId'  => $order->id,
                'Extra' => [
                    $this->mapTxType(AbstractGateway::TX_STATUS) => 'QUERY',
                ],
            ]
        ;
    }

from pos.

nuryagdym avatar nuryagdym commented on June 16, 2024

Merhabalar, 2 hafta sonra soruna bakabilirim

from pos.

lansas avatar lansas commented on June 16, 2024

from pos.

nuryagdym avatar nuryagdym commented on June 16, 2024

Merhabalar, hangi guncellemeri yaptiginizi paylasir misiniz. Ben paylastiginiz koda gore guncellemeyi yaptim, baska nerelerde yapilmasi gerektigini de paylasir misiniz

from pos.

nuryagdym avatar nuryagdym commented on June 16, 2024

Merhaba @lansas,
Islem iptali kisminda sorun yasiyorum.

$meta['Extra']['RECORDTYPE'] = "Order";
if ($s_cancel_type === null) {
    $meta['Extra']['RECORDID'] = $s_order_id;
} else if ($s_cancel_type == "recurring_taksit") {
    $meta['Extra']['RECURRINGOPERATION'] = "Cancel";
    $meta['Extra']['RECORDID'] = $s_order_id . "-" . $i_vade_taksit;
}

burda ilk if block'ta gibi veri gonderdigimde hata veriyor. ornegin su sekilde veri gonderiyorum:

[
  "Name" => "ISBANKAPI",
  "Password" => "ISBANK07",
  "ClientId" => "123456789494",
  "Extra" => [
    "RECORDTYPE" => "Order",
    "RECORDID" => "202210152B59", //siparis id
    "RECURRINGOPERATION" => "Cancel", // bu senin sagladigin kodda yok, ama saglamayinca _islem tipi yok_ diye hata veriyor.
  ]
];

else if block calisiyor, burda anladigim kadariyla tekrarlanan odemenin taksidini iptal ediyoruz:

[
  "Name" => "ISBANKAPI",
  "Password" => "ISBANK07",
  "ClientId" => "123456789494",
  "Extra" => [
    "RECORDTYPE" => "Order",
    "RECORDID" => "202210152B59-3", // <siparis-id>-<taksit-no>
    "RECURRINGOPERATION" => "Cancel",
  ]
];

Bu Recurring islemler icin dokumantasyon veya ornek kodlar var midir elinde, varsa paylasir misin.
Birinci if block calismadigi icin neyi iptal etmeye calisiyoruz onu da anlamadim.
RECORDTYPE hep ORDER mi olacak?

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.