If
installId
is defined, hub button works as integrated, showing "view integration". IfinstallId
isn't defined, hub button works as new integration, showing "Integrate with Pagar.me";
If
environment
is defined asdev
, hub button will take you to thedevelopment
environment, otherwise to theproduction
environment;
<!DOCTYPE HTML>
<html>
<head>
<title>Test Hub Button</title>
<script src="hub.min.js"></script>
</head>
<body>
<span id="pagarme-hub"></span>
</body>
<script>
// hub config
let config = {
publicAppKey : "00000000-0000-0000-0000-000000000000",
redirectUrl : "https://my-service.com/callback",
language: "pt-BR",
environment: "production"
//installId: "00000000-0000-0000-0000-000000000000"
};
// run and create button
Hub(config);
</script>
</html>