Skip to content

Instantly share code, notes, and snippets.

View hassanjamal's full-sized avatar
🚀
Working from home

Hassan Jamal hassanjamal

🚀
Working from home
View GitHub Profile
$(document).ready(function() {
$('#checkout-wizard')
.formValidation({
framework: 'bootstrap',
icon: {
valid: 'fa fa-check',
invalid: 'fa fa-times',
validating: 'fa fa-refresh'
},
fields: {
@hassanjamal
hassanjamal / StripeJs javacript code
Last active August 29, 2015 14:19
StripeJs javacript code
<script type="text/javascript" src="https://js.stripe.com/v2/"></script>
<script>
(function(){
var StripeBilling = {
init: function(){
this.form = $('#checkout-wizard');
this.submitButton = this.form.find('input[type=submit]');
var StripeKey = $('meta[name="stripe-publishable-key"]').attr('content');