Giter VIP home page Giter VIP logo

Comments (3)

imagehat avatar imagehat commented on August 17, 2024

@jlapan - Sorry for the delay, did you ever get this sorted? The json validation is a feature we added but haven't really used on a site to date so we haven't needed to troubleshoot that very much, but if not here are a few thoughts.

If it's the server response straight from Craft then I don't think it's the url—that url in the example is the Craft route to the json controller's validateAddress() function so it should be right—it might be that the csrf token is not being set correctly.

But I did recently realize that the Avalara API will return a 400 error message in the response if the address is not sent correctly. That seems to happen if the address fields are not sent correctly, e.g. make sure the page you're trying this on has the inputs named "shippingAddress[address1]" or they may need to change to "address[address1]" depending on the edit address form vs. the checkout form in the example.

Lastly, there was an error that could be caused if the address model wasn't populated correctly which has been fixed in v2.0.8.

from craft-avatax.

 avatar commented on August 17, 2024

@imagehat I did not. I currently have it disabled until I can get sandbox access to the client's Avalara account to further test and diagnose the issue.

from craft-avatax.

imagehat avatar imagehat commented on August 17, 2024

Ok. When you get back to it just ping me or Jason know again if you run into issues and we can try to help figure it out.

from craft-avatax.

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.