Git Product home page Git Product logo

Comments (4)

rizdaprasetya avatar rizdaprasetya commented on August 22, 2024

Actually the credit_card.authentication API wise accept both string & boolean, to maximize compatibility. The quick solution will be to change the type to string, which should be safe for both:

Authentication bool `json:"authentication,omitempty"`

Or any other alternative to define type that both accept bool and string from JSON on Go?

from go-midtrans.

imrenagi avatar imrenagi commented on August 22, 2024

I dont think so.. is it possible to promote this changes on the new version of this library?

from go-midtrans.

rizdaprasetya avatar rizdaprasetya commented on August 22, 2024

Yes make sense, this should be changed to string for next version. But first will need to make proper versioning of this library. Currently we're prioritizing some other development, we'll get back to this once we have proper allocation.
We'll leave this issue open for now, Pull Request from anyone is welcome to address this.

from go-midtrans.

imrenagi avatar imrenagi commented on August 22, 2024

Yep. Adding version number will be a good thing to have. I will try to make a PR for changing this to string tho. :D

from go-midtrans.

Related Issues (18)

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.