Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using GoCardless within an iframe
<!-- iframe tag, replace {{ connect_url }} with a url generated by one of our libraries -->
<iframe src="{{ connect_url }}" width="960" height="865" scrolling="auto" frameborder="0"></iframe>
<!-- Javascript to include on the page set as your Redirect URI (as configured in your Developer dashboard) so that when it loads within the iframe it actually redirects the parent -->
<script type="text/javascript">
<!--
if (top.location != self.location) {
top.location = self.location.href
}
-->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment