Skip to content

Commit

Permalink
Merge pull request #3 from RBAtkins0n/master
Browse files Browse the repository at this point in the history
2.2.9 - Add auto-update feature
  • Loading branch information
appinlet authored Jan 2, 2019
2 parents 3364e5c + 0277ac0 commit dde264d
Show file tree
Hide file tree
Showing 6 changed files with 537 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_Gravity_Forms
## DPO PayGate Gravity Forms plugin v2.2.8 for Gravity Forms v2.2.5.21, WordPress v4.9.2
## DPO PayGate Gravity Forms plugin v2.2.9 for Gravity Forms v2.4.4, WordPress v4.9.2

This is the DPO PayGate PayWeb3 plugin for Gravity Forms. Please feel free to contact the DPO PayGate support team at support@paygate.co.za should you require any assistance.

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

Please navigate to the [releases page](https://github.com/PayGate/PayWeb_Gravity_Forms/releases), download the latest release (v2.2.8) 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_Gravity_Forms/releases), download the latest release (v2.2.9) and unzip. You will them be able to follow the integration guide PDF which is included in the zip.

## Collaboration

Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
= 2.2.9 - December 29, 2018 =

* Add auto-update feature
2 changes: 1 addition & 1 deletion paygate-tools.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2018 PayGate (Pty) Ltd
*
* Author: App Inlet (Pty) Ltd
*
*
* Released under the GNU General Public License
*/
class PayGate
Expand Down
41 changes: 39 additions & 2 deletions paygate.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

/*
Plugin Name: Gravity Forms PayGate Add-On
Plugin URI: http://www.gravityforms.com
Plugin URI: https://github.com/PayGate/PayWeb_Gravity_Forms
Description: Integrates Gravity Forms with PayGate, a South African payment gateway.
Version: 2.2.8
Version: 2.2.9
Author: PayGate (Pty) Ltd
Author URI: https://www.paygate.co.za/
Developer: App Inlet (Pty) Ltd
Expand Down Expand Up @@ -147,3 +147,40 @@ function GF_encryption( $string, $action = 'e' )

return $output;
}

add_action( 'plugins_loaded', 'plugin_auto_updater', 0 );

function plugin_auto_updater()
{
/**
* Auto updates from GIT
*
* @since 2.2.9
*
*/

require_once 'updater.class.php';

if ( is_admin() ) {
// note the use of is_admin() to double check that this is happening in the admin

$config = array(
'slug' => plugin_basename( __FILE__ ),
'proper_folder_name' => 'gravity-forms-paygate-plugin',
'api_url' => 'https://api.github.com/repos/PayGate/PayWeb_Gravity_Forms',
'raw_url' => 'https://raw.github.com/PayGate/PayWeb_Gravity_Forms/master',
'github_url' => 'https://github.com/PayGate/PayWeb_Gravity_Forms',
'zip_url' => 'https://github.com/PayGate/PayWeb_Gravity_Forms/archive/master.zip',
'homepage' => 'https://github.com/PayGate/PayWeb_Gravity_Forms',
'sslverify' => true,
'requires' => '4.0',
'tested' => '4.9.8',
'readme' => 'README.md',
'access_token' => '',
);

new WP_GitHub_Updater( $config );

}

}
2 changes: 1 addition & 1 deletion paygate_gf_class.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright (c) 2018 PayGate (Pty) Ltd
*
* Author: App Inlet (Pty) Ltd
*
*
* Released under the GNU General Public License
*/
add_action( 'parse_request', array( "PayGateGF", "notify_handler" ) );
Expand Down
Loading

0 comments on commit dde264d

Please sign in to comment.