api-key:config attribute:Important: The json_encode()function generates JSON with double quotes. Theconfigattribute is wrapped in single quotes, so you must escape usinghtmlspecialchars($config, ENT_QUOTES)to prevent XSS and broken HTML.
config — typically cart data and optionally the customer's dynamic country:e.detail.code) of the selected point and inserts it into a hidden form field. When the form is submitted, the server receives the KM code as a regular POST parameter: