Skip to content

Instantly share code, notes, and snippets.

@joeydebreuk
Created June 28, 2022 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeydebreuk/73a0f8a618f733aace203de9ef3de687 to your computer and use it in GitHub Desktop.
Save joeydebreuk/73a0f8a618f733aace203de9ef3de687 to your computer and use it in GitHub Desktop.
iframe-callback.html
<!DOCTYPE html>
<html lang="fi">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
</head>
<body>
</body>
<script>
var params;
try {
params = Object.fromEntries(new URLSearchParams(window.location.search));
} catch (e) {
console.error(e)
}
window.top.postMessage(JSON.stringify({
event: 'success-trustly-deposit',
params,
}), '*');
</script>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment