Skip to content

Instantly share code, notes, and snippets.

@mbeale
Created October 4, 2013 16:16
Show Gist options
  • Save mbeale/6828561 to your computer and use it in GitHub Desktop.
Save mbeale/6828561 to your computer and use it in GitHub Desktop.
Submit a coupon automatically
Recurly.buildSubscriptionForm({
/* other options */
subscription: {
couponCode: 'testplan'
},
distinguishContactFromBillingInfo: true,
afterInject: function(){
if($('.coupon_code').val()){
$('div.check').click();
}
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment