-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs update: shipping/billing address #91
Comments
Hey @ryanmitchell I have raised a PR for this. Please review my PR! |
Thank you @ryanmitchell and @NaincyKumariKnoldus, we'll take a look soon. |
Hi @ryanmitchell We imagined that the storefront would have their own validation in place for this. When the exception is thrown it's almost a last line of defence to the address being incomplete. |
@alecritson thats grand, and I would be planning on validating there, but is there any harm in passing them back when they are available ( |
I would say the harm is people may start to use them rather than implementing their own validation, which I would consider a risk. We want to encourage the application developer to implement their own validation. |
Thats grand, I'll close this off as its not relevant. |
On: https://docs.getcandy.io/getcandy/carts.html#adding-shipping-billing-address
The shipping address formats are wrong:
should be:
Also the validation error here: https://github.com/getcandy/getcandy/blob/86d39477af3b4de1feaf9653ff94c912cb4a5625/packages/core/src/Actions/Carts/ValidateCartForOrder.php#L63
Should really pass the errors back so they can be output?
The text was updated successfully, but these errors were encountered: