const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const target = "Tripay Payment Gateway";
const idx = content.indexOf(target);
if (idx !== -1) {
  // Let's grab a larger window to see exactly where the "null" is, and where the pay button or auto-success simulation happens.
  console.log(content.substring(idx - 1000, idx + 4000));
} else {
  console.log("Not found");
}
