Skip to content

Button that will be used for connect external app with mundipagg

Notifications You must be signed in to change notification settings

mundipagg/hub-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Hub Button - For External Apps

If installId is defined, hub button works as integrated, showing "view integration". If installId isn't defined, hub button works as new integration, showing "Integrate with Pagar.me";


If environment is defined as dev, hub button will take you to the development environment, otherwise to the production 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>

Hub Button - by locations

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •