Skip to content

Commit

Permalink
Merge pull request #65 from veritrans/remove-jquery-from-payment-page
Browse files Browse the repository at this point in the history
Remove jquery from payment page
  • Loading branch information
rizdaprasetya authored Sep 1, 2021
2 parents b6cbc30 + 0af06e9 commit ea60c5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion midtrans-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Midtrans - WooCommerce Payment Gateway
Plugin URI: https://github.com/veritrans/SNAP-Woocommerce
Description: Accept all payment directly on your WooCommerce site in a seamless and secure checkout environment with <a target="_blank" href="https://midtrans.com/">Midtrans</a>
Version: 2.31.0
Version: 2.31.1
Author: Midtrans
Author URI: http://midtrans.co.id
License: GPLv2 or later
Expand Down
5 changes: 2 additions & 3 deletions public/js/midtrans-payment-page-main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// wc_midtrans var is passed from payment-page backend via inline script.

;(function( $, window, document ) {
;(function( window, document ) {
var payButton = document.getElementById("pay-button");

/**
Expand Down Expand Up @@ -242,5 +242,4 @@

handlePayAction();
payButton.innerHTML = "Proceed To Payment";
})( jQuery, window, document );
// well jQuery is not actually used, just for formality
})( window, document );
8 changes: 7 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: yocki, rizdaprasetya
Tags: midtrans, snap, payment, payment-gateway, credit-card, commerce, e-commerce, woocommerce, veritrans
Requires at least: 3.9.1
Tested up to: 5.8
Stable tag: 2.31.0
Stable tag: 2.31.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -72,6 +72,9 @@ The best way please email to support@midtrans.com, but bugs can be reported in o

== Changelog ==

= 2.31.1 - 2021-09-01 =
* improve compatibility with external optimizer plugins on payment page JS (remove jQuery dependency)

= 2.31.0 - 2021-08-26 =
* handle duplicated Snap order_id (incase WP is reinstalled, or DB restored) by auto-adding suffix
* improvement on finish url redirect flow, to prevent issue
Expand Down Expand Up @@ -262,6 +265,9 @@ The best way please email to support@midtrans.com, but bugs can be reported in o

== Upgrade Notice ==

= 2.31.1 - 2021-09-01 =
* improve compatibility with external optimizer plugins on payment page JS (remove jQuery dependency)

= 2.31.0 - 2021-08-26 =
* handle duplicated Snap order_id (incase WP is reinstalled, or DB restored) by auto-adding suffix
* improvement on finish url redirect flow, to prevent issue
Expand Down

0 comments on commit ea60c5a

Please sign in to comment.