Skip to content

Commit

Permalink
Implemented Mondido Checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
olegisk committed Jan 8, 2018
1 parent ab57b90 commit 77661c3
Show file tree
Hide file tree
Showing 43 changed files with 6,923 additions and 124 deletions.
25 changes: 25 additions & 0 deletions assets/js/checkout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
jQuery( function( $ ) {
'use strict';
$( document ).on( 'click', '#mondido-checkout-btn', function (e) {
e.preventDefault();

var elm = $(this);

$.ajax({
type: 'POST',
url: WC_Gateway_Mondido_Checkout.place_order_url,
//data: $form.serialize(),
dataType: 'json',
success: function( result ) {
console.log(result);
window.location.href = result.data.redirect_url;
}//,
//error: function( jqXHR, textStatus, errorThrown ) {
// wc_checkout_form.submit_error( '<div class="woocommerce-error">' + errorThrown + '</div>' );
//}
});


return;
} );
} );
1 change: 1 addition & 0 deletions assets/js/iframe-resizer/ie8.polyfils.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions assets/js/iframe-resizer/ie8.polyfils.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 77661c3

Please sign in to comment.