Once you have the token there are a couple ways you can approach charging it to add a subscription. The way that I do it is by setting up a subscription/order controller in rails, that then takes care of creating the subscription through an Ajax request. That allows us to catch any errors (i.e. not enough funds) without forcing the user to re-enter any non-credit card data on the site.
Normally after a successful subscription, you will let the form continue to a subscription/registrations controller and that will take care of the setup.
var plan = $(‘#recurly_plan_code’).val();
var form = $(‘<form action="’ + url + ‘" method="get">’ +
‘<input type="text" name="recurly_plan_code" value="’ + plan + ‘" />’ +