Skip to content

Instantly share code, notes, and snippets.

@almonk
Created September 4, 2013 16:40
Show Gist options
  • Save almonk/6439562 to your computer and use it in GitHub Desktop.
Save almonk/6439562 to your computer and use it in GitHub Desktop.
post '/create/subscription' do
url_params = {
:amount => 99,
:interval_unit => 'month',
:interval_length => 1,
:name => 'Example Subscription',
:description => 'Regular monthly payments (e.g., for hosting services)',
}
url = GoCardless.new_subscription_url(url_params)
redirect to url
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment