Skip to content

Instantly share code, notes, and snippets.

@em
Created September 12, 2011 18:08
Show Gist options
  • Save em/1211953 to your computer and use it in GitHub Desktop.
Save em/1211953 to your computer and use it in GitHub Desktop.
Recurly.buildSubscriptionForm({
target: '#recurly-subscribe',
afterSubscribe: function(result) {
var data = {
subscription: result
, somethingExtra: $('input.meta_data').val()
};
Recurly.post('/success/url', data, {});
}
// Do not specify successURL
});
// ruby backend: verify_subscription! params[:subscription]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment