Overlay Embed

Last updated
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Paychant</title>
<!-- Paychant SDK -->
<script
src="https://paychant.com/inline/v1"
crossorigin="anonymous">
</script>
</head>
<body>
<button type="button" onclick="triggerPaychant()">
Buy & Sell with Paychant
</button>
<!-- Start Paychant on button click -->
<script type="application/javascript">
const triggerPaychant = () => {
new PaychantWidget({
env: 'production',
action: 'buy',
partnerApiKey: [YOUR_PRODUCTION_PARTNER_API_KEY]',
partnerLogoUrl: [YOUR_BRAND_LOGO_URL],
partnerThemeColor: [YOUR_BRAND_THEME_COLOR],
callback: {
onClose: function() {
// console.log('window closed');
},
onStatus: function(txStatus) {
// console.log(txStatus);
},
},
}).openWindow();
}
</script>
</body>
</html>