Skip to content

Commit 8e96879

Browse files
Merge pull request #19 from appinlet/release/2.5.4
= 2.5.4 - July 04, 2024 =
2 parents ac52d5e + 097de3d commit 8e96879

4 files changed

Lines changed: 31 additions & 22 deletions

File tree

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# PayWeb_Gravity_Forms
22

3-
## Paygate Gravity Forms plugin v2.5.3 for Gravity Forms v2.8.3, WordPress v6.4
3+
## Paygate Gravity Forms plugin v2.5.4 for Gravity Forms v2.8.13, WordPress v6.5
44

55
This is the Paygate plugin for Gravity Forms. Please feel free to contact the Payfast support team at
66
support@payfast.help should you require any assistance.
@@ -10,9 +10,8 @@ support@payfast.help should you require any assistance.
1010
[![How To Setup Paygate for Gravity Forms](https://appinlet.com/wp-content/uploads/2021/01/How-To-Setup-PayGate-PayWeb-for-Gravity-Forms.jpg)](https://www.youtube.com/watch?v=r5nx1EfyOlo "How To Setup Paygate for Gravity Forms")
1111

1212
Please navigate to the [releases page](https://github.com/PayGate/PayWeb_Gravity_Forms/releases), download the latest
13-
release (v2.5.3) and unzip. You will then be able to follow the integration guide PDF which is included in the zip.
13+
release (v2.5.4) and unzip. You will then be able to follow the integration guide PDF which is included in the zip.
1414

1515
## Collaboration
1616

1717
Please submit pull requests with any tweaks, features or fixes you would like to share.
18-

changelog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
=====================================
2+
Version : Date : Description
3+
=====================================
4+
5+
= 2.5.4 - July 04, 2024 =
6+
* Test Wordpress 6.5.5 and Gravity Forms 2.8.13.
7+
* Improve compatibility with other gateways.
8+
* Fix issue where active feeds would not run as expected.
9+
110
= 2.5.3 - February 23, 2024 =
211
* Test Wordpress 6.4.3 and Gravity Forms 2.8.4.
312
* Update for PHP 8.1.

paygate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Plugin Name: Gravity Forms Paygate Add-On
55
* Plugin URI: https://github.com/PayGate/PayWeb_Gravity_Forms
66
* Description: Integrates Gravity Forms with Paygate, a South African payment gateway.
7-
* Version: 2.5.3
8-
* Tested: 6.4
7+
* Version: 2.5.4
8+
* Tested: 6.5
99
* Author: Payfast (Pty) Ltd
1010
* Author URI: https://payfast.io/
1111
* Developer: App Inlet (Pty) Ltd
@@ -83,8 +83,8 @@ function change_message($message, $form)
8383
{
8484
if (
8585
isset($_SESSION['trans_failed']) && !empty($_SESSION['trans_failed']) && strlen(
86-
$_SESSION['trans_failed']
87-
) > 0
86+
$_SESSION['trans_failed']
87+
) > 0
8888
) {
8989
$err_msg = $_SESSION['trans_failed'];
9090

src/PayGateGF.php

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class PayGateGF extends \GFPaymentAddOn
4646
protected $_capabilities_uninstall = 'gravityforms_paygate_uninstall';
4747
protected $_enable_rg_autoupgrade = false;
4848

49-
private const H6_TAG = '<h6>';
49+
private const H6_TAG = '<h6>';
5050
private const H6_TAG_CLOSING = '</h6>';
5151

5252
public static function get_instance()
@@ -187,7 +187,7 @@ public static function maybe_thankyou_page()
187187

188188
public static function notify_handler()
189189
{
190-
if (isset($_GET["page"])) {
190+
if (isset($_POST['PAY_REQUEST_ID']) && isset($_GET["page"])) {
191191
// Notify paygate that the request was successful
192192
echo "OK ";
193193

@@ -333,7 +333,7 @@ public static function get_config($form_id)
333333
$paygate = PayGateGF::get_instance();
334334
$feed = $paygate->get_feeds($form_id);
335335

336-
// Ignore ITN messages from forms that are no longer configured with the PayGate add-on
336+
// Ignore ITN messages from forms that are no longer configured with the Paygate add-on
337337
if (!$feed) {
338338
return false;
339339
}
@@ -435,9 +435,9 @@ public function feed_settings_fields()
435435
'required' => true,
436436
'tooltip' => self::H6_TAG .
437437
__('Paygate ID', 'gravityformspaygate') .
438-
self::H6_TAG_CLOSING.
438+
self::H6_TAG_CLOSING .
439439
__(
440-
'This is the PayGate ID, received from PayGate.',
440+
'This is the Paygate ID, received from Paygate.',
441441
'gravityformspaygate'
442442
),
443443
),
@@ -447,10 +447,10 @@ public function feed_settings_fields()
447447
'type' => 'text',
448448
'class' => 'medium',
449449
'required' => true,
450-
'tooltip' => self::H6_TAG .
450+
'tooltip' => self::H6_TAG .
451451
__('Paygate Merchant Key', 'gravityformspaygate') .
452452
self::H6_TAG_CLOSING .
453-
__('This is the Encryption Key set in the PayGate Back Office.', 'gravityformspaygate'),
453+
__('This is the Encryption Key set in the Paygate Back Office.', 'gravityformspaygate'),
454454
),
455455
array(
456456
'name' => 'testmode',
@@ -470,11 +470,11 @@ public function feed_settings_fields()
470470
),
471471
'horizontal' => true,
472472
'default_value' => 'no',
473-
'tooltip' => self::H6_TAG .
473+
'tooltip' => self::H6_TAG .
474474
__('Mode', 'gravityformspaygate') .
475475
self::H6_TAG_CLOSING .
476476
__(
477-
'Uses a PayGate test account. Request test cards from PayGate',
477+
'Uses a Paygate test account. Request test cards from Paygate',
478478
'gravityformspaygate'
479479
),
480480
),
@@ -496,7 +496,7 @@ public function feed_settings_fields()
496496
),
497497
'horizontal' => true,
498498
'default_value' => 'no',
499-
'tooltip' => self::H6_TAG .
499+
'tooltip' => self::H6_TAG .
500500
__('Disable IPN', 'gravityformspaygate') .
501501
self::H6_TAG_CLOSING .
502502
__(
@@ -518,7 +518,7 @@ public function feed_settings_fields()
518518
),
519519
'horizontal' => true,
520520
'default_value' => 'yes',
521-
'tooltip' => self::H6_TAG .
521+
'tooltip' => self::H6_TAG .
522522
__(
523523
'Use Custom Confirmation Page',
524524
'gravityformspaygate'
@@ -532,7 +532,7 @@ public function feed_settings_fields()
532532
'label' => __('Successful Page Url', 'gravityformspaygate'),
533533
'type' => 'text',
534534
'class' => 'medium',
535-
'tooltip' => self::H6_TAG .
535+
'tooltip' => self::H6_TAG .
536536
__('Successful Page Url', 'gravityformspaygate') .
537537
self::H6_TAG_CLOSING .
538538
__('Enter a thank you page url when a transaction is successful.', 'gravityformspaygate'),
@@ -542,7 +542,7 @@ public function feed_settings_fields()
542542
'label' => __('Failed Page Url', 'gravityformspaygate'),
543543
'type' => 'text',
544544
'class' => 'medium',
545-
'tooltip' => self::H6_TAG .
545+
'tooltip' => self::H6_TAG .
546546
__('Failed Page Url', 'gravityformspaygate') .
547547
self::H6_TAG_CLOSING .
548548
__(
@@ -942,7 +942,8 @@ public function redirect_url($feed, $submission_data, $form, $entry)
942942
unset($fields['CHECKSUM']);
943943
$checksum = md5(implode('', $fields) . $merchant_key);
944944
print $payGate->getPaygatePostForm($fields['PAY_REQUEST_ID'], $checksum);
945-
exit;
945+
946+
return "";
946947
}
947948

948949
public function get_product_query_string($submission_data, $entry_id)
@@ -1372,7 +1373,7 @@ public function temporary_plugin_page()
13721373
{
13731374
?>
13741375
<script type="text/javascript">
1375-
function dismissMenu () {
1376+
function dismissMenu() {
13761377
jQuery('#gf_spinner').show();
13771378
jQuery.post(ajaxurl, {
13781379
action: 'gf_dismiss_paygate_menu'

0 commit comments

Comments
 (0)