Skip to content

Commit a7cac13

Browse files
Merge pull request #20 from appinlet/release/1.5.4
= 1.5.4 - April 9, 2024 =
2 parents dc81f5c + a1379de commit a7cac13

35 files changed

Lines changed: 2797 additions & 705 deletions

README.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
# mod-gravityforms
22

3-
PayFast Add-on for Gravity Forms v2.6.8
3+
## Payfast module v1.5.4 for Gravity Forms v2.8.7
44

5-
Installation
5+
This is the Payfast module for Gravity Forms. Please feel free
6+
to [contact the Payfast support team](https://payfast.io/contact/) should you require any assistance.
67

7-
1. Unzip the module to a temporary location on your computer
8-
2. Copy the “gravityformspayfast” folder in the archive to your base "wp-content/plugins” folder
8+
## Installation
99

10-
- This should NOT overwrite any existing files or folders and merely supplement them with the PayFast files
11-
- This is however, dependent on the FTP program you use
10+
1. Unzip the module to a temporary location on your computer.
11+
2. Copy the **gravityformspayfast** folder in the archive to your base **wp-content/plugins** folder.
12+
- This should NOT overwrite any existing files or folders and merely supplement them with the Payfast files.
13+
- This is, however, dependent on the FTP program you use.
14+
3. Login to the WordPress Administrator console.
15+
4. Go to **Plugins** and activate the Payfast Gravity Forms plugin.
16+
5. Go to **Forms** -> **Settings**, under **Default Currency**, select **South African Rand** and click **Save Settings**.
17+
6. You will then need to create a form with options included from the **Pricing Fields** section and click **Save**.
18+
7. Go to **Forms** -> **Settings** -> **Payfast**, and add feed settings for Payfast per form.
19+
8. Complete the Payfast settings as required, and select **Mode** -> **Test** for testing purposes.
1220

13-
3. Login to the WordPress Administrator console
14-
4. Go to ‘Plugins’ and activate the PayFast Gravity Forms plugin.
15-
5. Go to ‘Forms’ -> ’Settings’, under ‘General Settings’, select ‘South African Rands’ for currency and click 'Save
16-
Settings'.
17-
6. You will then need to create a form with options included from the ‘Pricing Fields’ section and click 'Save'.
18-
7. Go to ‘Forms’ -> ’Settings’ -> ’PayFast’, and add feed settings for PayFast, per form.
19-
8. Complete the PayFast settings as required, and select 'Test' Mode and 'Debug' for testing purposes.
21+
Please [click here](https://payfast.io/integration/plugins/gravity-forms/) for more information concerning this
22+
module.
2023

21-
How can I test that it is working correctly? If you followed the installation instructions above, the module is in
22-
“test” mode and you can test it by creating an invoice and completing the payment cycle through the PayFast sandbox,
23-
login with the user account detailed above and make payment using the balance in their wallet.
24+
## Collaboration
2425

25-
You will not be able to directly “test” a specific payment method (such as credit card or Instant EFT) in the sandbox,
26-
but you don’t really need to. The inputs to and outputs from PayFast are exactly the same, no matter which payment
27-
method is used, so using the wallet will give you exactly the same results as if you had used another payment method.
28-
29-
Please [click here](https://payfast.io/integration/shopping-carts/gravity-forms/) for more information concerning this module.
26+
Please submit pull requests with any tweaks, features or fixes you would like to share.

changelog.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

flot/jquery.flot.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

gravityformspayfast/changelog.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
= 1.5.4 - April 9, 2024 =
2+
* Test WordPress 6.5 and Gravity Forms 2.8.7.
3+
* Update for PHP 8.1.
4+
* Add support for form pagination.
5+
* Bug fixes and improvements.
6+
* Update to Payfast Common Class v1.0.2
7+
8+
= 1.5.3 - January 6, 2023 =
9+
* Test WordPress 6.1.1 and Gravity Forms 2.6.8.
10+
* Update for PHP 8.0.
11+
* Bug fixes and improvements.
12+
* Add support for Payment Complete event.
Lines changed: 286 additions & 232 deletions
Large diffs are not rendered by default.

gravityformspayfast/composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"payfast/payfast-common": "v1.0.2"
4+
}
5+
}

gravityformspayfast/composer.lock

Lines changed: 60 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

payfast.php renamed to gravityformspayfast/payfast.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<?php
22

33
/*
4-
Plugin Name: Gravity Forms PayFast Add-On
5-
Plugin URI: http://www.gravityforms.com
6-
Description: Integrates Gravity Forms with PayFast, a South African payment gateway.
7-
Version: 1.5.3
8-
Author: PayFast
9-
Author URI: http://www.payfast.co.za
4+
Plugin Name: Gravity Forms Payfast Add-On
5+
Plugin URI: https://github.com/Payfast/mod-gravityforms
6+
Description: Integrates Gravity Forms with Payfast, a South African payment gateway.
7+
Version: 1.5.4
8+
Author: Payfast (Pty) Ltd
9+
Author URI: https://payfast.io
1010
Text Domain: gravityformspayfast
1111
Domain Path: /languages
1212
*/
1313

14-
include 'payfast_common.inc';
15-
define('GF_PAYFAST_VERSION', PF_MODULE_VER);
16-
1714
add_action('gform_loaded', array('GF_PayFast_Bootstrap', 'load'), 5);
1815

1916
class GF_PayFast_Bootstrap
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
// autoload.php @generated by Composer
4+
5+
if (PHP_VERSION_ID < 50600) {
6+
if (!headers_sent()) {
7+
header('HTTP/1.1 500 Internal Server Error');
8+
}
9+
$err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running ' . PHP_VERSION . ', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.' . PHP_EOL;
10+
if (!ini_get('display_errors')) {
11+
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
12+
fwrite(STDERR, $err);
13+
} elseif (!headers_sent()) {
14+
echo $err;
15+
}
16+
}
17+
trigger_error(
18+
$err,
19+
E_USER_ERROR
20+
);
21+
}
22+
23+
require_once __DIR__ . '/composer/autoload_real.php';
24+
25+
return ComposerAutoloaderInit403b9e524a78d4c8d2bbefbff79e0422::getLoader();

0 commit comments

Comments
 (0)