Validation Return Value #528
TheoFreundAtHT
started this conversation in
Feedback: Cart and Checkout Validation API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
when building a checkout validaiton function I noticed the following:
The return value for the function is an array of FunctionErrors, typed as
but when checking the response to [shop-url]/checkouts/internal/graphql/persisted?operationName=Proposal
i found that the errors are defined as such:
Now I have the following questions:
I am trying to solve for the following:
I need to validate checkout for line items that are missing a certain property. I am doing this via server-side validation to catch Express checkout methods as well as standard payments. As I had implemented with client-side validation at first, I included a link in the error message to point the customer into the right direction.
Beta Was this translation helpful? Give feedback.
All reactions