Sha256: 09d2b244dcad5d70be748914cf84c3c770dcafae45a21c6337fc127d9a049226
Contents?: true
Size: 920 Bytes
Versions: 512
Compression:
Stored size: 920 Bytes
Contents
Caboose.Store.Modules.CheckoutPayment = (function() { self = { is_confirm: false }; self.initialize = function() { $('#checkout-continue button').click(self.continue_handler); }; self.continue_handler = function(event) { $('#message').html("<p class='loading'>Processing...</p>"); $.ajax({ url: '/checkout/confirm', type: 'post', success: function(resp) { if (resp.success == true) { if (resp.redirect) window.location = resp.redirect; else window.location = '/checkout/thanks'; } else if (resp.error) $('#message').html("<p class='note error'>" + resp.error + "</p>"); else $('#message').html("<p class='note error'>There was an error processing your payment.</p>"); } }); }; return self }).call(Caboose.Store);
Version data entries
512 entries across 512 versions & 1 rubygems