Skip to content

Commit 60ee60f

Browse files
Merge pull request #23 from AppInlet/release/2.6.1
[2.6.1]
2 parents 8ce4c95 + 452e793 commit 60ee60f

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [2.6.1](https://github.com/Paygate/PayWeb_Gravity_Forms/releases/tag/v2.6.1)
4+
5+
### Fixed
6+
7+
- Resolved issue with Gravity Forms Multi Currency Add-on.
8+
39
## [2.6.0](https://github.com/Paygate/PayWeb_Gravity_Forms/releases/tag/v2.6.0)
410

511
### Added

README.md

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

3-
## Paygate Gravity Forms Plugin v2.6.0 for Gravity Forms v2.9.1
3+
## Paygate Gravity Forms Plugin v2.6.1 for Gravity Forms v2.9.1
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.
@@ -9,7 +9,7 @@ support@payfast.help should you require any assistance.
99

1010
1. **Download the Latest Release**
1111
- Visit the [releases page](https://github.com/Paygate/PayWeb_Gravity_Forms/releases) and
12-
download [gravity-forms-paygate-plugin.zip](https://github.com/Paygate/PayWeb_Gravity_Forms/releases/download/v2.6.0/gravity-forms-paygate-plugin.zip).
12+
download [gravity-forms-paygate-plugin.zip](https://github.com/Paygate/PayWeb_Gravity_Forms/releases/download/v2.6.1/gravity-forms-paygate-plugin.zip).
1313

1414
2. **Install the Plugina**
1515
- Log in to your WordPress Admin panel.

paygate.php

Lines changed: 2 additions & 2 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.6.0
8-
* Tested: 6.7
7+
* Version: 2.6.1
8+
* Tested: 6.8
99
* Author: Payfast (Pty) Ltd
1010
* Author URI: https://payfast.io/
1111
* Developer: App Inlet (Pty) Ltd

src/PayGateGF.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,8 @@ public function redirect_url($feed, $submission_data, $form, $entry)
784784
$country_code3 = 'ZAF'; // Default value
785785
}
786786

787+
$currency = rgar( $entry, 'currency' ) ?? GFCommon::get_currency();
788+
787789
$fields = [
788790
'REFERENCE' => $entry['id'],
789791
'AMOUNT' => number_format(
@@ -792,7 +794,7 @@ public function redirect_url($feed, $submission_data, $form, $entry)
792794
'',
793795
''
794796
),
795-
'CURRENCY' => GFCommon::get_currency(),
797+
'CURRENCY' => $currency,
796798
'RETURN_URL' => $return_url,
797799
'TRANSACTION_DATE' => date('Y-m-d H:m:s'),
798800
'LOCALE' => 'en-za',
@@ -806,7 +808,7 @@ public function redirect_url($feed, $submission_data, $form, $entry)
806808

807809
$fields['USER1'] = $entry['created_by'];
808810
$fields['USER2'] = get_bloginfo('admin_email');
809-
$fields['USER3'] = 'gravityforms-v2.5.2';
811+
$fields['USER3'] = 'gravityforms-v2.6.1';
810812

811813
$paymentRequest = new PaymentRequest($merchant_id, $merchant_key);
812814
$paygate = new PayGate();

0 commit comments

Comments
 (0)