Created
November 17, 2014 01:43
-
-
Save zachberry/92f27c8b18794b7ea576 to your computer and use it in GitHub Desktop.
Snippet to quickly fill out a Stripe iframe form in test mode
This file contains 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
document.getElementById('shipping-name').value = 'Jimbo Jones'; | |
document.getElementById('shipping-street').value = '123 Fake St.'; | |
document.getElementById('shipping-zip').value = '12345'; | |
document.getElementById('shipping-city').value = 'Anytown'; | |
document.getElementById('submitButton').click(); | |
setTimeout(function() { | |
document.getElementById('card_number').value = '4242 4242 4242 4242'; | |
document.getElementById('cc-exp').value = '01 / 22'; | |
document.getElementById('cc-csc').value = '222'; | |
document.getElementById('submitButton').click(); | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment