@@ -94,97 +94,97 @@ el.attachEvent('on'+ev, function() {handler.apply(el);});
console.log(response.error);
break;
case 404:
// your marketplace URI is incorrect
case 201:
// WOO HOO! MONEY!
// response.data.uri == URI of the bank account resource you
// should store this bank account URI to later credit it
console.log(response.data);
var $form = $("#bank-account-form");
// the uri is an opaque token referencing the tokenized bank account
var bank_account_uri = response.data['uri'];
// append the token as a hidden field to submit to the server
$('<input>').attr({
type: 'hidden',
value: bank_account_uri,
name: 'balancedBankAccountURI'
}).appendTo($form);
$form.attr({action: requestBinURL});
$form.get(0).submit();
default:
console.log(response.status);
}
//alert('allo?');
var tokenizeInstrument = function(e) {
alert('what"s going on?');
e.preventDefault();
var $form = $('#bank-account-form');
var bankAccountData = {
name: $form.find('.ba-name').val(),
account_number: $form.find('.ba-an').val(),
bank_code: $form.find('.ba-rn').val(),
type: $form.find('select').val()
};
balanced.bankAccount.create(bankAccountData, responseCallbackHandler);
$('#bank-account-form').submit(tokenizeInstrument);
*/
</script>
-->
$8,896.00 raised toward<br/>
$8,896 raised toward<br/>
our $75,000 goal.</br>
<div id="progressbar" style="height:20px;"><span style="float:right; align:center; margin-right:40%">11.9%</div>
<font style="font-size: 75%">(Progress bar updated daily.)</font>
<a id="donate" style="text-decoration:none"></a>
<h3>Help us reach our goal:</h3>
<!-- PayPal start -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="3VRTJALJ5PQRW">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="Donate Now!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- PayPal end -->
<!-- Balanced start -
<div class="container">
- <form action="#" method="POST" id="bank-account-form" class="form-horizontal" onsubmit="balanced.card.create(cardData, function(response) { alert(response.status); });"> -
<form action="#" method="POST" id="bank-account-form" class="form-horizontal">
<fieldset>
<legend>Bank Account Information</legend>
<p><label>Account Holder's Name
<input type="text"
autocomplete="off"
placeholder="Bank Account Holder's name"
class="ba-name"
name="ba_name"
value="4111 1111 1111 1111">
</label></p>
<p><label>Routing Number
placeholder="Routing Number"
class="ba-rn"
name="ba_rn"
value="4">
<p><label>Account Number
placeholder="Account Number"
class="ba-an"
name="ba_an"
value="2014">
<p><label>Account Something