Skip to content

Commit bd24722

Browse files
committed
Updated version number
1 parent 78939b7 commit bd24722

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

give-iats.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55
* Description: Process online donations via the iATS payment gateway.
66
* Author: WordImpress
77
* Author URI: https://wordimpress.com
8-
* Version: 1.0.1
8+
* Version: 1.0.2
99
* Text Domain: give-iats
1010
* Domain Path: /languages
1111
* GitHub Plugin URI: https://github.com/WordImpress/Give-iATS
1212
*/
1313

1414
// iATS Constants.
1515
if ( ! defined( 'GIVE_IATS_VERSION' ) ) {
16-
define( 'GIVE_IATS_VERSION', '1.0.1' );
16+
define( 'GIVE_IATS_VERSION', '1.0.2' );
1717
}
1818
if ( ! defined( 'GIVE_IATS_MIN_GIVE_VERSION' ) ) {
19-
define( 'GIVE_IATS_MIN_GIVE_VERSION', '1.8.12' );
19+
define( 'GIVE_IATS_MIN_GIVE_VERSION', '1.8.19' );
2020
}
2121
if ( ! defined( 'GIVE_IATS_PLUGIN_FILE' ) ) {
2222
define( 'GIVE_IATS_PLUGIN_FILE', __FILE__ );
2323
}
2424
if ( ! defined( 'GIVE_IATS_PLUGIN_DIR' ) ) {
25-
define( 'GIVE_IATS_PLUGIN_DIR', dirname( __FILE__ ) );
25+
define( 'GIVE_IATS_PLUGIN_DIR', dirname( GIVE_IATS_PLUGIN_FILE ) );
2626
}
2727
if ( ! defined( 'GIVE_IATS_PLUGIN_URL' ) ) {
28-
define( 'GIVE_IATS_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
28+
define( 'GIVE_IATS_PLUGIN_URL', plugin_dir_url( GIVE_IATS_PLUGIN_FILE ) );
2929
}
3030
if ( ! defined( 'GIVE_IATS_BASENAME' ) ) {
31-
define( 'GIVE_IATS_BASENAME', plugin_basename( __FILE__ ) );
31+
define( 'GIVE_IATS_BASENAME', plugin_basename( GIVE_IATS_PLUGIN_FILE ) );
3232
}
3333

3434
/**
@@ -139,7 +139,7 @@ function setup_hooks() {
139139
*/
140140
public function enqueue_scripts( $hook ) {
141141
if ( isset( $_GET['tab'] ) && 'gateways' === $_GET['tab'] ) {
142-
wp_enqueue_script( 'iats-admin-settings', plugins_url( '/assets/js/admin/admin-settings.js', __FILE__ ), array( 'jquery' ) );
142+
wp_enqueue_script( 'iats-admin-settings', plugins_url( '/assets/js/admin/admin-settings.js', GIVE_IATS_PLUGIN_FILE ), array( 'jquery' ) );
143143
}
144144
}
145145

@@ -154,7 +154,7 @@ public function enqueue_scripts( $hook ) {
154154
public function load_textdomain() {
155155

156156
// Set filter for plugin's languages directory.
157-
$give_iats_lang_dir = dirname( plugin_basename( __FILE__ ) ) . '/languages/';
157+
$give_iats_lang_dir = dirname( plugin_basename( GIVE_IATS_PLUGIN_FILE ) ) . '/languages/';
158158
$give_iats_lang_dir = apply_filters( 'give_iats_languages_directory', $give_iats_lang_dir );
159159

160160
// Traditional WordPress plugin locale filter.
@@ -260,7 +260,7 @@ function give_iats_min_version_notice() {
260260
function give_add_iats_licensing() {
261261

262262
if ( class_exists( 'Give_License' ) ) {
263-
new Give_License( __FILE__, 'iATS Payment Solutions', GIVE_IATS_VERSION, 'WordImpress' );
263+
new Give_License( GIVE_IATS_PLUGIN_FILE, 'iATS Payment Solutions', GIVE_IATS_VERSION, 'WordImpress' );
264264
}
265265
}
266266

readme.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== Give - iATS Gateway ===
22
Contributors: wordimpress
33
Tags: donations, donation, ecommerce, e-commerce, fundraising, fundraiser, iats, gateway
4-
Requires at least: 4.5
4+
Requires at least: 4.8
55
Tested up to: 4.9
6-
Stable tag: 1.0.1
6+
Stable tag: 1.0.2
77
License: GPLv3
88
License URI: https://opensource.org/licenses/GPL-3.0
99

@@ -38,6 +38,10 @@ Automatic updates should work like a charm; as always though, ensure you backup
3838

3939
== Changelog ==
4040

41+
= 1.0.2 =
42+
* Fix: Compatiblity with Fee Recovery so that the proper amount with fees is sent to the gateway.
43+
* Fix: iATS requires two decimal places. When this gateway is active it forces two decimal places for donation amounts.
44+
4145
= 1.0.1 =
4246
* Fix: Resolved issue with large amounts being sent with thousands separator which iATS' API doesn't expect and therefore would incorrectly process.
4347
* Fix: PHP notice for using deprecated give_output_error() rather than Give_Notices().

0 commit comments

Comments
 (0)