title: How to get Shopify transaction getway on thank you page?
body: <p>I want to get the type of payment method chosen by the user. I have tried using</p>
  <pre><code>{{ transaction.gateway }}
  </code></pre>
  <p>as mentioned on <a href="https://docs.shopify.com/themes/liquid-documentation/objects/transaction#transaction-gateway" rel="nofollow noreferrer">Shopify Liquid Documentation</a>. But I don't know why the value is empty. Below is the little code snippet that I have added in
  <code>Admin-&gt;Settings-&gt;Checkout-&gt;Additional content and scripts</code></p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
  var temp = &quot; {{ shipping_method.title }} &quot;;
  var temp1 = &quot;{{ transaction.gateway }}&quot;;
  alert(temp);
  alert(temp1);
  </code></pre>
  
  <p>Can anyone please help me?</p>