Save checkout object in a variable

Highlighted
New Member
2 0 0

Hi, I'm trying to get the checkout object with an additional scripts in order to get the transaction.gateway. This the way that I'm trying:

<script> 
    let transactions = {{checkout.transactions}};
    console.log(transactions[0].gateway);
</script>

 

Thanks in advance.

0 Likes