Created
October 4, 2013 16:16
-
-
Save mbeale/6828561 to your computer and use it in GitHub Desktop.
Submit a coupon automatically
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({ | |
/* 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