Skip to content

Instantly share code, notes, and snippets.

@DHS
Created March 14, 2012 20:38
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 DHS/2039332 to your computer and use it in GitHub Desktop.
Save DHS/2039332 to your computer and use it in GitHub Desktop.
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