Skip to content

Instantly share code, notes, and snippets.

@3rd-Eden
Created April 21, 2011 11:14
Show Gist options
  • Save 3rd-Eden/934190 to your computer and use it in GitHub Desktop.
Save 3rd-Eden/934190 to your computer and use it in GitHub Desktop.
(function(){
var hash = {
first_name: 'firstname'
, last_name: 'lastname'
, address1: 'Address'
, city: 'city'
, cc_number: '4111111... creditcard number'
, expdate_month: '00'
, expdate_year: '00'
, cvv2_number: '000'
, zip: 'zip'
, H_PhoneNumber: '000000'
, 'email-address': '[email protected]'
};
for(var id in hash) document.getElementById(id).value = hash[id];
}());
(function(){
var hash = {
in_progress_booking_first_name: 'firstname'
, in_progress_booking_last_name: 'lastname'
, in_progress_booking_email: '[email protected]'
, in_progress_booking_phone: '01234567489 number'
, in_progress_booking_company: 'company name'
, in_progress_booking_billing_address: 'Company name\nAddress\nZipcode City\nCountry'
};
for(var id in hash) document.getElementById(id).value = hash[id];
// un comment or add more if you need to buy more tickets
//Booking.addLineWithBookingDetails();
//Booking.addLineWithBookingDetails();
//Booking.addLineWithBookingDetails();
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment