Coder Social home page Coder Social logo

Response code 90 about omni_kassa HOT 11 CLOSED

pepijn avatar pepijn commented on June 30, 2024
Response code 90

from omni_kassa.

Comments (11)

pepijn avatar pepijn commented on June 30, 2024

Hmmm I think that we received this error sometimes, while nothing was wrong. The OmniKassa-server was temporarily unavailable, as it says in your first example. When it retries later, it works. So that's why it is #pending?. Makes sense?

from omni_kassa.

tombruijn avatar tombruijn commented on June 30, 2024

I can't really test to see how it works when naturally throwing an 90 response code. If I make it throw response code 90, through one of the CC options and making the last two numbers of the card 90, it won't retry the order at a later time, is this supposed to happen?

from omni_kassa.

pepijn avatar pepijn commented on June 30, 2024

Maybe @koenpunt remembers? 8d05798

from omni_kassa.

tombruijn avatar tombruijn commented on June 30, 2024

I see it's also the case in the "official" PHP (and .NET) example code Koen mentions in his commit.

// Translate transaction status code
protected function getTransactionStatus($sTransactionCode)
{
  if(in_array($sTransactionCode, array('00'))) // SUCCESS
  {
    return 'SUCCESS';
  }
  elseif(in_array($sTransactionCode, array('60', '90'))) // PENDING
  {
    return 'PENDING';
  }
  elseif(in_array($sTransactionCode, array('97'))) // EXPIRED
  {
    return 'EXPIRED';
  }
  elseif(in_array($sTransactionCode, array('17'))) // CANCELLED
  {
    return 'CANCELLED';
  }

  return 'FAILED';
}

I just don't know if maybe things have changed since then, unlikely, but so far I haven't seen why this would differ from the docs, based on the tests I've done with the test integration. So far, the documented meaning of code 90 doesn't reflect their example code.

from omni_kassa.

pepijn avatar pepijn commented on June 30, 2024

Can we close this issue, or do you still face problems concerning the status codes?

from omni_kassa.

koenpunt avatar koenpunt commented on June 30, 2024

I don't know. I don't believe I still have the documentation from that time so I can't compare..

from omni_kassa.

tombruijn avatar tombruijn commented on June 30, 2024

I've forked the repo and made a branch that handles response code 90 differently: tombruijn/omni_kassa/tree/response_code_90

I'll run this implementation for now while I'll contact Rabobank support. For now you can close this issue @pepijn. If anything breaks or I get a definitive answer about the response code I'll update this issue or create a new one referencing this one.

from omni_kassa.

pepijn avatar pepijn commented on June 30, 2024

Cool, thanks!

from omni_kassa.

tombruijn avatar tombruijn commented on June 30, 2024

So I got a response back from Rabobank OmniKassa, really quickly as well. They said the code examples were not correct and that code 90 is an error code as described in the documentation. They'll update the examples next week or the week after that. I asked to be notified when that happens.

Until then I'll keep handling code 90 as an error code. I've also created pull request #7 to update the OmniKassa::Response class to update the response handling. I hope you'll merge it in, but if you want to wait until the example code is updated I can understand that as well. Please leave it open until the code is updated in the coming weeks.

from omni_kassa.

pepijn avatar pepijn commented on June 30, 2024

I think this it what everyone should be doing then, so I've merged it. Thanks!

from omni_kassa.

pepijn avatar pepijn commented on June 30, 2024

https://github.com/pepijn/omni_kassa/releases/tag/v1.5.0

from omni_kassa.

Related Issues (3)

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.