Nika Gudge
asked on
Need javascript for request validation
For the json request ,
1. Match the key with a merchantUniqueIdentifier (key) in the request,
2. If the key matches then match the value extracted from a custom attribute.
Please find the attachment for the same. It has the request payload and the mid which needs to be verified.
Request.pdf
1. Match the key with a merchantUniqueIdentifier (key) in the request,
2. If the key matches then match the value extracted from a custom attribute.
Please find the attachment for the same. It has the request payload and the mid which needs to be verified.
Request.pdf
ASKER
the solution didn’t work
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes I did check js fiddle. The request is the Json string. When I execute the JavaScript I don’t see the print statements being executed within.
Open in new window
is only going to find top-level keys. It won't find "merchantUniqueId" because that is a key in the "merchant" object. You can hard code it like this:JSFiddle
Open in new window