Skip to content

Instantly share code, notes, and snippets.

@yugaego
Created May 5, 2018 12:20
Show Gist options
  • Save yugaego/86b0ddbf8e9e80a5579c250218f24849 to your computer and use it in GitHub Desktop.
Save yugaego/86b0ddbf8e9e80a5579c250218f24849 to your computer and use it in GitHub Desktop.
Output Infusionsoft Merchants Accounts ID using JavaScript
var merchants = 'Merchant Accounts:\n';
jQuery('#defaultMerchantAccount option').each(function(i, elem){
if (elem.value) {
merchants += '\t• ID ' + elem.value.split('|')[0] + '\t' + elem.text + '\n';
}
});
alert(merchants);

Open

  • Go to your Infusionsoft account
  • Open E-Commerce > Settings > Merchant Accounts page

Access the Developer Tools in the browser

  • Chrome
    • Menu > More Settings > Developer Tools > Console Tab
    • View > Developer > JavaScript Console
  • Firefox
    • Menu > Web Developer > Web Console
    • Tools > Web Developer > Web Console

Output

  • Copy/paste JavaScript command into the console, right after normally blue > sign
  • Hit enter
  • See merchant accounts ID and names alerted by the browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment