Created
June 28, 2022 12:32
-
-
Save joeydebreuk/73a0f8a618f733aace203de9ef3de687 to your computer and use it in GitHub Desktop.
iframe-callback.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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