Skip to content

Commit

Permalink
Merge pull request #3 from RBAtkins0n/master
Browse files Browse the repository at this point in the history
1.1.6 iFrame version
  • Loading branch information
appinlet authored Oct 25, 2018
2 parents 6e08edc + a9791c7 commit eee257a
Show file tree
Hide file tree
Showing 15 changed files with 879 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# PayWeb_WooCommerce
## PayGate WooCommerce plugin v1.1.5 for WooCommerce v3.4.3
## PayGate WooCommerce plugin v1.1.6 for WooCommerce v3.5.0

This is the DPO PayGate PayWeb3 plugin for WooCommerce. Please feel free to contact the DPO PayGate support team at [email protected] should you require any assistance.

## Installation
[![How To Setup DPO | PayGate PayWeb for WooCommerce](https://www.appinlet.com/wp-content/uploads/2018/09/WooCommerce-Integration.jpg)](https://www.youtube.com/watch?v=MMcEG7FmoEM "How To Setup DPO | PayGate PayWeb for WooCommerce")

Please navigate to the [releases page](https://github.com/PayGate/PayWeb_WooCommerce/releases), download the latest release (v1.1.5) and unzip. You will them be able to follow the integration guide PDF which is included in the zip.
Please navigate to the [releases page](https://github.com/PayGate/PayWeb_WooCommerce/releases), download the latest release (v1.1.6) and unzip. You will them be able to follow the integration guide PDF which is included in the zip.

## Collaboration

Expand Down
22 changes: 22 additions & 0 deletions Redirect/woocommerce-gateway-paygate-pw3/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

=====================================
Date : Version: Description
=====================================
2018-10-24: v1.1.6 : Use non-conflict jQuery
2018-10-13: v1.1.5 : Apply alternative approach to JS click event
2018-08-07: v1.1.4 : Backwards compatibility with older plugin settings2018-05-16: v1.1.3 : Reversion and rebrand. Add options to toggle redirect OR notify2018-05-16: v3.3.8 : Fix double stock reduction on SiD notify
2018-04-19: v3.3.7 : Fix WP debug.log entry when NOTIFY method accessed directly
2018-04-16: v3.3.6 : Fix notify url broken on some url rewrites to HTTPS
2018-04-11: v3.3.5 : Fix redirect response sometimes not captured
2018-03-13: v3.3.3 : Add WC 3.3 compatibility, better declined and cancel handling
2017-11-16: v3.2.3 : Change versioning standard to be consistent with other plugins.2017-10-17: v1.1.1 : Fixed WooCommerce compatiblity issues and warning errors including order
status on 'Thank You' page, order total and order billing email.
Solved paymant method error where post data failed on checkout.
2017-03-01: v1.1.0 : Added PayVault tokenization functionality and cleaned up class.
2016-12-19: v1.0.3 : Updated return method to better handle transaction status and messages.
2015-11-10: v1.0.2 : Updated plugin to update order status with the notify from PayGate
and this update helps in making sure that correct pages are displayed
based on transaction-status.
2015-07-10: v1.0.1 : Update notify function on return from PayGate to echo OK and
get Order number.
2015.03.17: v1.0.0 : First Release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ public function generate_paygate_form( $order_id )
</div>
</form>
<script>
$(document).ready(function(){
$.blockUI({
jQuery(document).ready(function(){
jQuery.blockUI({
message: "{$messageText}",
baseZ: 99999,
overlayCSS:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* Plugin Name: PayGate PayWeb3 plugin for WooCommerce
* Plugin Name: PayGate PayWeb3 plugin for WooCommerce (Redirect)
* Plugin URI: https://www.paygate.co.za
* Description: Accept payments for WooCommerce using PayGate's PayWeb3 service
* Version: 1.1.5
* Version: 1.1.6
* Author: PayGate (Pty) Ltd
* Author URI: https://www.paygate.co.za/
* Developer: App Inlet (Pty) Ltd
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/* The popup (background) */

#payPopup {
display: block;
/* Shows the popup */
position: fixed;
z-index: 10000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
/* Fallback background color */
background-color: rgba(0, 0, 0, 0.6);
/* Background color with opacity */
}
/* Popup content box */

#payPopupContent {
background-color: #fefefe;
/* Popup color */
margin: auto;
margin-top: 30px;
padding: 6px;
border: 1px solid #888;
/* Popup border */
border-radius: 10px;
max-width: 700px;
/* Popup width */
height: 90%;
/* Popup height: */
overflow: auto;
}
#payPopupFrame {
margin: 0px;
padding: 0px;
border: none;
width: 100%;
height: 100%;
}
/* The close button */

#payPopupClose {
color: #aaa;
/* Close button color */
float: right;
font-size: 28px;
/* Close button size */
font-weight: bold;
margin: 0px;
padding: 0px;
font-family: 'Times New Roman';
line-height: 15px;
height: 15px;
}
#payPopupClose:hover, #payPopupClose:focus {
color: black;
/* Close button hover color */
text-decoration: none;
cursor: pointer;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
jQuery(function() {
jQuery.ajaxSetup({
complete: function(xhr, textStatus) {
var result = JSON.parse(xhr.responseText);
if (result.paygate_override) {
jQuery('.woocommerce-error').remove();
initPayPopup(result);
return false;
}
return;
}
});
jQuery(document).ajaxComplete(function() {
if (jQuery('body').hasClass('woocommerce-checkout') || jQuery('body').hasClass('woocommerce-cart')) {
jQuery('html, body').stop();
}
});
});

function initPayPopup(result) {
jQuery("body").append("<div id='payPopup'></div>");
jQuery("#payPopup").append("<div id='payPopupContent'></div>");
jQuery("#payPopupContent").append("<form target='myIframe' name='paygate_checkout' id='paygate_checkout' action='https://secure.paygate.co.za/payweb3/process.trans' method='post'><input type='hidden' name='PAY_REQUEST_ID' value='" + result.PAY_REQUEST_ID + "' size='200'><input type='hidden' name='CHECKSUM' value='" + result.CHECKSUM + "' size='200'></form><iframe style='width:100%;height:100%;' id='payPopupFrame' name='myIframe' src='#' ></iframe><script type='text/javascript'>document.getElementById('paygate_checkout').submit();</script>");
}
jQuery(document).on('submit', 'form#order_review', function(e) {
e.preventDefault();
jQuery.ajax({
'url': wc_add_to_cart_params.ajax_url,
'type': 'POST',
'dataType': 'json',
'data': {
'action': 'order_pay_payment',
'order_id': paygate_checkout_js.order_id
},
'async': false
}).complete(function(result) {
var result = JSON.parse(result);
initPayPopup(result);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
=====================================
Date : Version: Description
=====================================
2018-10-15: v1.1.6 : iFrame version
2018-10-13: v1.1.5 : Apply alternative approach to JS click event
2018-08-07: v1.1.4 : Backwards compatibility with older plugin settings2018-05-16: v1.1.3 : Reversion and rebrand. Add options to toggle redirect OR notify2018-05-16: v3.3.8 : Fix double stock reduction on SiD notify
2018-04-19: v3.3.7 : Fix WP debug.log entry when NOTIFY method accessed directly
Expand Down
Loading

0 comments on commit eee257a

Please sign in to comment.