Comments (3)
@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.
@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.
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)
- Craft Commerce 3.0 Support HOT 4
- Provide setting to select when order is committed HOT 4
- TypeError - Arg 1 passed to validateAddress() must be an instance of craft\commerce\models\Address? HOT 3
- Cannot edit plugin settings HOT 3
- Is this plugin a custom integration? HOT 2
- Invalid address error results in uncaught exception HOT 2
- License Key Value Stored in config/project/project.yaml HOT 5
- Request to avatax.com failed HOT 7
- Cart passing all items as non-taxable HOT 2
- SalesTaxService.php - Request could not be completed HOT 5
- $model is undefined - SalesTaxService.php HOT 1
- After install event breaking automated testing HOT 9
- Allowing Programmatic Tax Calculation HOT 5
- Error if the order is saved through console command in 2.1.7 version HOT 1
- Guzzle Error HOT 2
- Does this plugin support international fees? (Customs / VAT / etc). HOT 1
- Craftcms 4 compatibility HOT 1
- Commerce V4, Address Validation Fails - Calling Unknown Method SalesTaxService:getState() HOT 1
- Craft 5 Compatibility? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-avatax.