Skip to content

Instantly share code, notes, and snippets.

@martinbowling
Created September 26, 2019 00:25
Show Gist options
  • Save martinbowling/8af008eb48aa444d35ddbb9a9a3c13f9 to your computer and use it in GitHub Desktop.
Save martinbowling/8af008eb48aa444d35ddbb9a9a3c13f9 to your computer and use it in GitHub Desktop.
terpyjscart
/* JS INECTION CODE */
if(typeof Checkout === 'object'){
if(typeof Checkout.$ === 'function'){
/* your super duper code in here, such as: */
document.getElementById('payment_gateway_36437000235_description').innerHTML += "<a href='https://greenbyphone.com/eCheck/eCheck.aspx?GreenButton_id=13462&TransactionID='><img src='https://greenbyphone.com/eCheck/images/PayNowButton.png' border='0' alt='' /></a>";
var element = document.getElementById("payment_gateway_36437000235_description'");
element.classList.remove("visually-hidden");
}
}
/* END JS INECTION CODE */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment