Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
aait committed Jun 9, 2018
0 parents commit 61b74ad
Show file tree
Hide file tree
Showing 25 changed files with 4,214 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
.DS_Store
7 changes: 7 additions & 0 deletions assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.woocommerce-checkout-payment .mondido-logo img {
display: block;
height: auto;
max-width: 100%;
border: solid 1px gray;
border-radius: 4px;
}
Binary file added assets/images/mondido.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 61b74ad

Please sign in to comment.