Plugin Directory

Changeset 3770749


Ignore:
Timestamp:
10/28/2026 01:12:28 PM (4 weeks ago)
Author:
paystack
Message:

Update to version 2.0.9 from GitHub

Location:
paystack-add-on-for-gravity-forms
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • paystack-add-on-for-gravity-forms/tags/2.0.9/class-gf-paystack-api.php

    r3768755 r3770749  
    4040        ];
    4141
    42         $this->send_request(
    43             'log/charge_success',
    44             $params,
    45             'post',
    46             'https://plugin-tracker.paystackintegrations.com/'
    47         );
     42        // Usage tracking must never block a paid customer from reaching the confirmation page.
     43        try {
     44            $this->send_request(
     45                'log/charge_success',
     46                $params,
     47                'post',
     48                'https://plugin-tracker.paystackintegrations.com/'
     49            );
     50        } catch (\Throwable $e) {
     51            error_log(__METHOD__ . '(): plugin tracker request failed: ' . $e->getMessage());
     52        }
    4853    }
    4954
    … …  
    8186        $body = json_decode($res['body'], true);
    8287
    83         if ($body !== null) {
     88        if (is_array($body)) {
    8489            error_log(__METHOD__ . '(): ' . strtoupper($method) . ' ' . $uri . ' status: ' . (isset($body['status']) ? var_export($body['status'], true) : 'unknown'));
    8590
  • paystack-add-on-for-gravity-forms/tags/2.0.9/paystack.php

    r3768755 r3770749  
    550
    66Description: Integrates Gravity Forms with Paystack, enabling customers to pay for goods and services through Gravity Forms.
    7 Version: 2.0.8
     7Version: 2.0.9
    88Author: Paystack
    99Author URI: https://developers.paystack.com
    … …  
    3232defined('ABSPATH') || die();
    3333
    34 define('GF_PAYSTACK_VERSION', '2.0.8');
     34define('GF_PAYSTACK_VERSION', '2.0.9');
    3535
    3636require_once __DIR__ . '/includes/php-advisory.php';
  • paystack-add-on-for-gravity-forms/tags/2.0.9/readme.txt

    r3768755 r3770749  
    66Tested up to: 7.1
    77Requires PHP: 7.2
    8 Stable tag: 2.0.8
     8Stable tag: 2.0.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5555== Changelog ==
    5656
     57= 2.0.9 - October 28, 2026 =
     58* Fixed a fatal error on the confirmation page after a successful payment when the usage tracking service is unreachable.
     59
    5760= 2.0.8 - October 27, 2026 =
    5861* Security: hardened webhook and payment verification. Props k2sobot.
    … …  
    9396== Upgrade Notice ==
    9497
     98= 2.0.9 =
     99* Fixes a fatal error customers could see after paying. Please update.
     100
    95101= 2.0.8 =
    96102* Security update — please update now. After updating, rotate your live and test secret keys in the Paystack Dashboard and delete old PHP and WordPress debug log files, as earlier versions logged API request details. Ask your host to run PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later.
  • paystack-add-on-for-gravity-forms/trunk/class-gf-paystack-api.php

    r3768755 r3770749  
    4040        ];
    4141
    42         $this->send_request(
    43             'log/charge_success',
    44             $params,
    45             'post',
    46             'https://plugin-tracker.paystackintegrations.com/'
    47         );
     42        // Usage tracking must never block a paid customer from reaching the confirmation page.
     43        try {
     44            $this->send_request(
     45                'log/charge_success',
     46                $params,
     47                'post',
     48                'https://plugin-tracker.paystackintegrations.com/'
     49            );
     50        } catch (\Throwable $e) {
     51            error_log(__METHOD__ . '(): plugin tracker request failed: ' . $e->getMessage());
     52        }
    4853    }
    4954
    … …  
    8186        $body = json_decode($res['body'], true);
    8287
    83         if ($body !== null) {
     88        if (is_array($body)) {
    8489            error_log(__METHOD__ . '(): ' . strtoupper($method) . ' ' . $uri . ' status: ' . (isset($body['status']) ? var_export($body['status'], true) : 'unknown'));
    8590
  • paystack-add-on-for-gravity-forms/trunk/paystack.php

    r3768755 r3770749  
    550
    66Description: Integrates Gravity Forms with Paystack, enabling customers to pay for goods and services through Gravity Forms.
    7 Version: 2.0.8
     7Version: 2.0.9
    88Author: Paystack
    99Author URI: https://developers.paystack.com
    … …  
    3232defined('ABSPATH') || die();
    3333
    34 define('GF_PAYSTACK_VERSION', '2.0.8');
     34define('GF_PAYSTACK_VERSION', '2.0.9');
    3535
    3636require_once __DIR__ . '/includes/php-advisory.php';
  • paystack-add-on-for-gravity-forms/trunk/readme.txt

    r3768755 r3770749  
    66Tested up to: 7.1
    77Requires PHP: 7.2
    8 Stable tag: 2.0.8
     8Stable tag: 2.0.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
    … …  
    5555== Changelog ==
    5656
     57= 2.0.9 - October 28, 2026 =
     58* Fixed a fatal error on the confirmation page after a successful payment when the usage tracking service is unreachable.
     59
    5760= 2.0.8 - October 27, 2026 =
    5861* Security: hardened webhook and payment verification. Props k2sobot.
    … …  
    9396== Upgrade Notice ==
    9497
     98= 2.0.9 =
     99* Fixes a fatal error customers could see after paying. Please update.
     100
    95101= 2.0.8 =
    96102* Security update — please update now. After updating, rotate your live and test secret keys in the Paystack Dashboard and delete old PHP and WordPress debug log files, as earlier versions logged API request details. Ask your host to run PHP 8.2.35, 8.3.36, 8.4.27, 8.5.12 or later.
Note: See TracChangeset for help on using the changeset viewer.