How do I initialise store in-app-purchase?
In a DrupalGap Custom Module, you'll use hook_deviceready():

/**
 * Implements hook_deviceready().
 */
function my_module_deviceready() {
  // Place your initializeStore function's code here...

  return true; // Let DrupalGap know it is OK to continue.
}