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
javascript:( function(){var nf = document.querySelector('input[name="name.first"]');var nl = document.querySelector('input[name="name.last"]');var d1 = document.querySelector('input[name="deliveryAddress.lineOne"]');var d2 = document.querySelector('input[name="deliveryAddress.lineTwo"]');var t = document.querySelector('input[name="deliveryAddress.town"]');var cs = document.querySelector('input[name="deliveryAddress.countyOrState"]');var pc = document.querySelector('input[name="deliveryAddress.postCode"]');var pt = document.querySelector('input[name=paymentType]');var cc = document.querySelector('[data-stripe=number]');var cvc = document.querySelector('[data-stripe=cvc]');var em = document.querySelector('[data-stripe=exp-month]');var ey = document.querySelector('[data-stripe=exp-year]');if(nf){nf.value='user first name';}if(nl){nl.value='user last name';}if(d1){d1.value='test street address line one';}if(d2){d2.value='test street address line two';}if(t){t.value='test town';}if(cs){cs.value='test county';}if(p |
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
/** | |
* Originally from http://davidwalsh.name/convert-xml-json | |
* This is a version that provides a JSON object without the attributes and places textNodes as values | |
* rather than an object with the textNode in it. | |
* 27/11/2012 | |
* Ben Chidgey | |
* | |
* @param xml | |
* @return {*} | |
*/ |