title: TypeError: Cannot read properties of undefined (reading 'dataResponse') at callback
body: <p>I am trying to query an api according to the instructions you gave me, but I am getting this error:</p>
  <p>(index):30 Uncaught TypeError: Cannot read properties of undefined (reading 'dataResponse')
  at callback ((index):30)
  at HTMLButtonElement.onclick ((index):23)
  callback @ (index):30
  onclick @ (index):23</p>
  <p>api instructions <a href="https://drive.google.com/file/d/1KHLduw46l1e3aIGCliTvn1gYuJhv8Npy/view?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/file/d/1KHLduw46l1e3aIGCliTvn1gYuJhv8Npy/view?usp=sharing</a>
  could you help me please</p>
  <pre><code>&lt;!doctype html&gt;
  &lt;html lang=&quot;en&quot;&gt;
    &lt;head&gt;
      &lt;!-- Required meta tags --&gt;
      &lt;meta charset=&quot;utf-8&quot;&gt;
      &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&gt;
  
        &lt;!-- Bootstrap CSS --&gt;
  
      &lt;title&gt;Duke Business School&lt;/title&gt;
      &lt;script
      data-user=&quot;user(user@test.com) &quot;
      data-password=&quot;(password 'sha256Hex')&quot;
      data-button=false
      data-response=true
      data-amount=&quot;100.01&quot;
      data-commerce=&quot;Affinitas&quot;
      src=&quot;http://52.22.36.22:9020/js/transactions.js&quot;&gt;
     &lt;/script&gt; 
    &lt;/head&gt;
    &lt;body&gt;
  
          &lt;button onclick=&quot;callback();&quot;&gt; pagar&lt;/button&gt;
        &lt;/div&gt;
      &lt;/section&gt;
  
     &lt;script&gt;
      function callback(data){
      alert(&quot;RESPUESTA OBTENIDA EN HTML&quot;);
      alert(&quot;Operación: &quot; + data.dataResponse.description + &quot; Autorización: &quot; +
     data.dataResponse.authorization)
      }
     &lt;/script&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  
  </code></pre>