Created
September 12, 2011 18:08
-
-
Save em/1211953 to your computer and use it in GitHub Desktop.
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
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